mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 21:33:40 +08:00
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>
This commit is contained in:
parent
699960b272
commit
8d30b794ce
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user