From 8d30b794ce952638f7ad5d249d2447a2f45d123e Mon Sep 17 00:00:00 2001 From: Torsten Duwe Date: Sun, 23 Aug 2009 18:08:14 +0200 Subject: Fix segfault of qemu-system-arm with PXA target qemu-system-arm (0.10.5) segfaults when invoked with a PXA machine target, e.g. -M tosa. The reason is fairly obvious: Signed-off-by: Torsten Duwe Signed-off-by: Christoph Hellwig Signed-off-by: Andrzej Zaborowski --- hw/zaurus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/zaurus.c') diff --git a/hw/zaurus.c b/hw/zaurus.c index e52f29b575..78a120c9d0 100644 --- a/hw/zaurus.c +++ b/hw/zaurus.c @@ -155,7 +155,7 @@ static CPUWriteMemoryFunc *scoop_writefn[] = { void scoop_gpio_set(void *opaque, int line, int level) { - ScoopInfo *s = (ScoopInfo *) s; + ScoopInfo *s = (ScoopInfo *) opaque; if (level) s->gpio_level |= (1 << line); -- cgit v1.2.3