Skip to content
Snippets Groups Projects
Commit f3c7245f authored by Torsten Duwe's avatar Torsten Duwe Committed by Glauber Costa
Browse files

BACKPORT: 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:

[backport: current code uses struct scoop_info_s instead of a typedef ]

Signed-off-by: default avatarTorsten Duwe <duwe@lst.de>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAndrzej Zaborowski <balrogg@gmail.com>
Signed-off-by: default avatarGlauber Costa <glommer@redhat.com>
parent d4779e95
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ static CPUWriteMemoryFunc *scoop_writefn[] = {
void scoop_gpio_set(void *opaque, int line, int level)
{
struct scoop_info_s *s = (struct scoop_info_s *) s;
struct scoop_info_s *s = (struct scoop_info_s *) opaque;
if (level)
s->gpio_level |= (1 << line);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment