aboutsummaryrefslogtreecommitdiff
path: root/hw/zaurus.c
diff options
context:
space:
mode:
authorTorsten Duwe <duwe@lst.de>2009-08-23 18:08:14 +0200
committerAndrzej Zaborowski <balrog@zabor.org>2009-08-23 18:08:14 +0200
commit8d30b794ce952638f7ad5d249d2447a2f45d123e (patch)
tree266334d08539a3ab5b951f130efe5ca101ee2e76 /hw/zaurus.c
parent699960b2725f392ccc5070602edf67a7f314f552 (diff)
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 <duwe@lst.de> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrzej Zaborowski <balrogg@gmail.com>
Diffstat (limited to 'hw/zaurus.c')
-rw-r--r--hw/zaurus.c2
1 files changed, 1 insertions, 1 deletions
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);