Received: from eggs.gnu.org ([208.118.235.92]:54576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiL0Z-0000Rf-2r for qemu-devel@nongnu.org; Tue, 11 Dec 2012 03:16:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiL0S-0003dq-Ta for qemu-devel@nongnu.org; Tue, 11 Dec 2012 03:16:06 -0500 References: <1354974282-1915-1-git-send-email-agraf@suse.de> <1354974282-1915-11-git-send-email-agraf@suse.de> <1355182974.5334.19@snotra> In-Reply-To: <1355182974.5334.19@snotra> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <4B978347-9BF9-4342-AB92-C745FA41CEAA@suse.de> From: Alexander Graf Date: Tue, 11 Dec 2012 09:17:20 +0100 Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH 10/19] openpic: remove unused type variable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Scott Wood Cc: "qemu-ppc@nongnu.org List" , qemu-devel qemu-devel On 11.12.2012, at 00:42, Scott Wood wrote: > On 12/08/2012 07:44:33 AM, Alexander Graf wrote: >> The openpic source irqs are carrying around a type indicator that >> is never accessed by anything. Remove it. >> Signed-off-by: Alexander Graf >> --- >> hw/openpic.c | 27 ++------------------------- >> 1 files changed, 2 insertions(+), 25 deletions(-) >> diff --git a/hw/openpic.c b/hw/openpic.c >> index e4ef23d..d252b2b 100644 >> --- a/hw/openpic.c >> +++ b/hw/openpic.c >> @@ -167,13 +167,6 @@ static uint32_t openpic_cpu_read_internal(void *opaq= ue, hwaddr addr, >> static void openpic_cpu_write_internal(void *opaque, hwaddr addr, >> uint32_t val, int idx); >> -enum { >> - IRQ_EXTERNAL =3D 0x01, >> - IRQ_INTERNAL =3D 0x02, >> - IRQ_TIMER =3D 0x04, >> - IRQ_SPECIAL =3D 0x08, >> -}; >=20 > We may want to distinguish based on something like this in the future -- f= or example, internal interrupts on FSL MPIC don't have a "sense" bit. I would rather like to give irq lines flags than types then. An FSL MPIC cou= ld set a 'has no sense bit' flag in the irq line which means the sense bit i= s always masked out when written to. Alex