From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WksW0-0001VQ-Bh for qemu-devel@nongnu.org; Thu, 15 May 2014 06:04:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WksVo-0006WK-V7 for qemu-devel@nongnu.org; Thu, 15 May 2014 06:03:52 -0400 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:36333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WksSS-0005fJ-5N for qemu-devel@nongnu.org; Thu, 15 May 2014 06:00:12 -0400 Received: from /spool/local by e23smtp05.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 15 May 2014 20:00:09 +1000 From: Alexey Kardashevskiy Date: Thu, 15 May 2014 19:59:56 +1000 Message-Id: <1400147999-4793-6-git-send-email-aik@ozlabs.ru> In-Reply-To: <1400147999-4793-1-git-send-email-aik@ozlabs.ru> References: <1400147999-4793-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH v2 5/8] xics: Remove obsolete xics_set_irq_type() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , qemu-ppc@nongnu.org, Alexander Graf This removes xics_set_irq_type() as it is not used anymore. This is done by a separate patch to make the previous patch look nicer. Signed-off-by: Alexey Kardashevskiy --- hw/intc/xics.c | 11 ----------- include/hw/ppc/xics.h | 1 - 2 files changed, 12 deletions(-) diff --git a/hw/intc/xics.c b/hw/intc/xics.c index fdcbb3a..1a8cfd7 100644 --- a/hw/intc/xics.c +++ b/hw/intc/xics.c @@ -678,17 +678,6 @@ static void ics_set_irq_type(ICSState *ics, int srcno, bool lsi) lsi ? XICS_FLAGS_IRQ_LSI : XICS_FLAGS_IRQ_MSI; } -void xics_set_irq_type(XICSState *icp, int irq, bool lsi) -{ - int src = xics_find_source(icp, irq); - ICSState *ics; - - assert(src >= 0); - - ics = &icp->ics[src]; - ics_set_irq_type(ics, irq - ics->offset, lsi); -} - #define ICS_IRQ_FREE(ics, srcno) \ (!((ics)->irqs[(srcno)].flags & (XICS_FLAGS_IRQ_MASK))) diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h index 8e13488..0d8af1b 100644 --- a/include/hw/ppc/xics.h +++ b/include/hw/ppc/xics.h @@ -157,7 +157,6 @@ struct ICSIRQState { }; qemu_irq xics_get_qirq(XICSState *icp, int irq); -void xics_set_irq_type(XICSState *icp, int irq, bool lsi); int xics_alloc(XICSState *icp, int src, int irq_hint, bool lsi); int xics_alloc_block(XICSState *icp, int src, int num, bool lsi, bool align); -- 1.9.rc0