提交 8d30b794 编写于 作者: T Torsten Duwe 提交者: Andrzej Zaborowski

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: NTorsten Duwe <duwe@lst.de>
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NAndrzej Zaborowski <balrogg@gmail.com>
上级 699960b2
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册