From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSYHS-0002hb-RM for qemu-devel@nongnu.org; Wed, 06 Jan 2010 10:58:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSYHO-0002f7-8g for qemu-devel@nongnu.org; Wed, 06 Jan 2010 10:58:42 -0500 Received: from [199.232.76.173] (port=54523 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSYHN-0002f1-Uz for qemu-devel@nongnu.org; Wed, 06 Jan 2010 10:58:37 -0500 Received: from mail-px0-f189.google.com ([209.85.216.189]:57325) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSYHN-00080j-Id for qemu-devel@nongnu.org; Wed, 06 Jan 2010 10:58:37 -0500 Received: by pxi27 with SMTP id 27so10988711pxi.4 for ; Wed, 06 Jan 2010 07:58:36 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20100105231928.6526.64342.stgit@skyserv> References: <20100105231558.6526.44483.stgit@skyserv> <20100105231928.6526.64342.stgit@skyserv> From: Blue Swirl Date: Wed, 6 Jan 2010 15:58:16 +0000 Message-ID: Subject: Re: [Qemu-devel] [PATCH 5/9] sparc64: add macros to deal with softint and timer interrupt Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Igor V. Kovalenko" Cc: qemu-devel@nongnu.org On Tue, Jan 5, 2010 at 11:19 PM, Igor V. Kovalenko wrote: > From: Igor V. Kovalenko > > Signed-off-by: Igor V. Kovalenko > --- > =C2=A0target-sparc/cpu.h | =C2=A0 =C2=A06 ++++++ > =C2=A01 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h > index 1fe4d0f..0dba241 100644 > --- a/target-sparc/cpu.h > +++ b/target-sparc/cpu.h > @@ -394,6 +394,8 @@ typedef struct CPUSPARCState { > =C2=A0 =C2=A0 uint64_t fprs; > =C2=A0 =C2=A0 uint64_t tick_cmpr, stick_cmpr; > =C2=A0 =C2=A0 void *tick, *stick; > +#define TICK_NPT_MASK =C2=A0 =C2=A0 =C2=A0 =C2=A00x8000000000000000ULL > +#define TICK_SOFTINT_DISABLE 0x8000000000000000ULL Please move the TICK_NPT and TICK_INT_DIS macros from sun4u.c to here. > =C2=A0 =C2=A0 uint64_t gsr; > =C2=A0 =C2=A0 uint32_t gl; // UA2005 > =C2=A0 =C2=A0 /* UA 2005 hyperprivileged registers */ > @@ -402,6 +404,10 @@ typedef struct CPUSPARCState { > =C2=A0 =C2=A0 uint32_t softint; > =C2=A0#define SOFTINT_TIMER =C2=A0 1 > =C2=A0#define SOFTINT_STIMER =C2=A0(1 << 16) > +#define SOFTINT_INTRMASK (0xFFFE) > +#define SOFTINT_TM =C2=A0 =C2=A0 =C2=A0 (1 << 0) > +#define SOFTINT_SM =C2=A0 =C2=A0 =C2=A0 (1 << 16) Why the duplicate definitions? > +#define SOFTINT_REG_MASK (SOFTINT_SM|SOFTINT_INTRMASK|SOFTINT_TM) > =C2=A0#endif > =C2=A0 =C2=A0 sparc_def_t *def; > =C2=A0} CPUSPARCState; > > > >