fix segfault of qemu-system-arm with PXA target
PATCH 1/1 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:
[hch: forward ported from qemu-0.11 to current git HEAD]
Signed-off-by Torsten Duwe <[email protected]>
Signed-off-by Christoph Hellwig <[email protected]>
hw/zaurus.c +1 -1
@@ -155,7 +155,7 @@ static CPUWriteMemoryFunc *scoop_writefnvoid scoop_gpio_set (void *opaque,int line,int level) { -ScoopInfo *s = (ScoopInfo *) s; +ScoopInfo *s = (ScoopInfo *) opaque;if (level) s->gpio_level |= (1 << line);