From f3c7245f2387d3963ed85e97f220b72e5bddc161 Mon Sep 17 00:00:00 2001 From: Torsten Duwe Date: Sun, 23 Aug 2009 18:08:14 +0200 Subject: [PATCH] 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: Torsten Duwe Signed-off-by: Christoph Hellwig Signed-off-by: Andrzej Zaborowski Signed-off-by: Glauber Costa --- hw/zaurus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/zaurus.c b/hw/zaurus.c index 8b16c47a41c..7c1fd2a456f 100644 --- a/hw/zaurus.c +++ b/hw/zaurus.c @@ -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); -- 2.39.5