From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lg4N9-0000GH-Qn for qemu-devel@nongnu.org; Sat, 07 Mar 2009 16:47:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lg4N9-0000Ek-7A for qemu-devel@nongnu.org; Sat, 07 Mar 2009 16:47:55 -0500 Received: from [199.232.76.173] (port=39194 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lg4N9-0000EY-29 for qemu-devel@nongnu.org; Sat, 07 Mar 2009 16:47:55 -0500 Received: from savannah.gnu.org ([199.232.41.3]:52551 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lg4N8-0006ag-MY for qemu-devel@nongnu.org; Sat, 07 Mar 2009 16:47:54 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Lg4N8-000732-2y for qemu-devel@nongnu.org; Sat, 07 Mar 2009 21:47:54 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Lg4N7-00072x-OH for qemu-devel@nongnu.org; Sat, 07 Mar 2009 21:47:53 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Sat, 07 Mar 2009 21:47:53 +0000 Subject: [Qemu-devel] [6765] arm: Fix gic_irq_state.level bitfield type Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6765 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6765 Author: aurel32 Date: 2009-03-07 21:47:53 +0000 (Sat, 07 Mar 2009) Log Message: ----------- arm: Fix gic_irq_state.level bitfield type Found while cleaning up compiler warnings: GIC_*_LEVEL macros strongly suggest that gic_irq_state.level is intended to be per-CPU and not just a single, global bit. I'm unable to test the effect, but it seems to be the most reasonable fix for the apparent brokenness. Signed-off-by: Jan Kiszka Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/hw/arm_gic.c Modified: trunk/hw/arm_gic.c =================================================================== --- trunk/hw/arm_gic.c 2009-03-07 21:35:27 UTC (rev 6764) +++ trunk/hw/arm_gic.c 2009-03-07 21:47:53 UTC (rev 6765) @@ -39,7 +39,7 @@ unsigned enabled:1; unsigned pending:NCPU; unsigned active:NCPU; - unsigned level:1; + unsigned level:NCPU; unsigned model:1; /* 0 = N:N, 1 = 1:N */ unsigned trigger:1; /* nonzero = edge triggered. */ } gic_irq_state;