From patchwork Sat Aug 15 12:13:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Torsten Duwe X-Patchwork-Id: 31492 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 52A8CB6F1E for ; Mon, 17 Aug 2009 04:11:52 +1000 (EST) Received: from localhost ([127.0.0.1]:44299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MckCr-0004xv-3H for incoming@patchwork.ozlabs.org; Sun, 16 Aug 2009 14:11:49 -0400 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 Organization: LST e.V. To: qemu-devel@nongnu.org Date: Sat, 15 Aug 2009 14:13:24 +0200 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200908151413.25094.duwe@lst.de> X-Spam-Score: -0.001 () BAYES_44 X-Scanned-By: MIMEDefang 2.39 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sun, 16 Aug 2009 14:03:20 -0400 Subject: [Qemu-devel] [Patch] fix segfault of qemu-system-arm X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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: The same problem exists in the curent git. Torsten --- 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);