Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lg4NZ-0000oq-Lb for qemu-devel@nongnu.org; Sat, 07 Mar 2009 16:48:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lg4NZ-0000nv-04 for qemu-devel@nongnu.org; Sat, 07 Mar 2009 16:48:21 -0500 Received: from [199.232.76.173] (port=39203 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lg4NY-0000nd-PS for qemu-devel@nongnu.org; Sat, 07 Mar 2009 16:48:20 -0500 Received: from hall.aurel32.net ([88.191.82.174]:55188) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lg4NY-0006hm-73 for qemu-devel@nongnu.org; Sat, 07 Mar 2009 16:48:20 -0500 Date: Sat, 7 Mar 2009 22:48:14 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH 3/7] arm: Fix gic_irq_state.level bitfield type Message-ID: <20090307214814.GB13444@volta.aurel32.net> References: <20090221190054.12485.30486.stgit@mchn012c.ww002.siemens.net> <20090221190055.12485.92305.stgit@mchn012c.ww002.siemens.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20090221190055.12485.92305.stgit@mchn012c.ww002.siemens.net> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-devel@nongnu.org On Sat, Feb 21, 2009 at 08:00:55PM +0100, Jan Kiszka wrote: > 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 Thanks applied. > --- > > hw/arm_gic.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/hw/arm_gic.c b/hw/arm_gic.c > index fef3113..8e61b6e 100644 > --- a/hw/arm_gic.c > +++ b/hw/arm_gic.c > @@ -39,7 +39,7 @@ typedef struct gic_irq_state > 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; > > > > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net