Patchwork fix segfault of qemu-system-arm

login
register
mail settings
Submitter Torsten Duwe
Date Aug. 15, 2009, 12:13 p.m.
Message ID <200908151413.25094.duwe@lst.de>
Download mbox | patch
Permalink /patch/31492/
State Superseded
Headers show

Comments

Torsten Duwe - Aug. 15, 2009, 12:13 p.m.
qemu-system-arm (0.10.5) segfaults when invoked with a PXA machine target, 
e.g. -M tosa. The reason is fairly obvious:


The same problem exists in the curent git.

	Torsten

Patch

--- qemu-0.10.5/hw/zaurus.c.orig        2009-05-20 22:46:59.000000000 +0200
+++ qemu-0.10.5/hw/zaurus.c     2009-08-15 01:45:57.000000000 +0200
@@ -160,7 +160,7 @@ 
 
 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);