[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] fix segfault of qemu-system-arm with PXA target
From: |
Christoph Hellwig |
Subject: |
[Qemu-devel] [PATCH] fix segfault of qemu-system-arm with PXA target |
Date: |
Sat, 15 Aug 2009 23:17:58 +0200 |
User-agent: |
Mutt/1.3.28i |
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 <address@hidden>
Signed-off-by: Christoph Hellwig <address@hidden>
Index: qemu/hw/zaurus.c
===================================================================
--- qemu.orig/hw/zaurus.c 2009-08-15 18:13:46.102699041 -0300
+++ qemu/hw/zaurus.c 2009-08-15 18:13:55.366663320 -0300
@@ -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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] fix segfault of qemu-system-arm with PXA target,
Christoph Hellwig <=