Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McI8k-0001TS-FJ for qemu-devel@nongnu.org; Sat, 15 Aug 2009 08:13:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McI8g-0001Gz-SR for qemu-devel@nongnu.org; Sat, 15 Aug 2009 08:13:42 -0400 Received: from [199.232.76.173] (port=51393 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McI8g-0001GW-Mm for qemu-devel@nongnu.org; Sat, 15 Aug 2009 08:13:38 -0400 Received: from verein.lst.de ([213.95.11.210]:56863) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1McI8f-0006dt-Mi for qemu-devel@nongnu.org; Sat, 15 Aug 2009 08:13:38 -0400 Received: from blackhole (ppp-88-217-115-159.dynamic.mnet-online.de [88.217.115.159]) (authenticated bits=0) by verein.lst.de (8.12.3/8.12.3/Debian-7.1) with ESMTP id n7FCDWVL032157 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Sat, 15 Aug 2009 14:13:32 +0200 From: Torsten Duwe Date: Sat, 15 Aug 2009 14:13:24 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200908151413.25094.duwe@lst.de> Subject: [Qemu-devel] [Patch] fix segfault of qemu-system-arm List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org qemu-system-arm (0.10.5) segfaults when invoked with a PXA machine target, e.g. -M tosa. The reason is fairly obvious: --- 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); The same problem exists in the curent git. Torsten