Received: from eggs.gnu.org ([2001:4830:134:3::10]:33017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkso7-0004wP-9E for qemu-devel@nongnu.org; Thu, 15 May 2014 06:22:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wksny-0004cD-Uk for qemu-devel@nongnu.org; Thu, 15 May 2014 06:22:35 -0400 Received: from e23smtp04.au.ibm.com ([202.81.31.146]:36207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WksSV-0005lp-AU for qemu-devel@nongnu.org; Thu, 15 May 2014 06:00:16 -0400 Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 15 May 2014 20:00:10 +1000 From: Alexey Kardashevskiy Date: Thu, 15 May 2014 19:59:57 +1000 Message-Id: <1400147999-4793-7-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 6/8] spapr: Remove @next_irq 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 @next_irq from sPAPREnvironment which was used in old IRQ allocator as XICS is now responsible for IRQs and keeps track of allocated IRQs. Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr.c | 3 +-- include/hw/ppc/spapr.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index fce7e1c..d95e9b4 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -767,7 +767,7 @@ static const VMStateDescription vmstate_spapr = { .minimum_version_id = 1, .minimum_version_id_old = 1, .fields = (VMStateField []) { - VMSTATE_UINT32(next_irq, sPAPREnvironment), + VMSTATE_UNUSED(4), /* used to be @next_irq */ /* RTC offset */ VMSTATE_UINT64(rtc_offset, sPAPREnvironment), @@ -1171,7 +1171,6 @@ static void ppc_spapr_init(QEMUMachineInitArgs *args) /* Set up Interrupt Controller before we create the VCPUs */ spapr->icp = xics_system_init(smp_cpus * kvmppc_smt_threads() / smp_threads, XICS_IRQS); - spapr->next_irq = XICS_IRQ_BASE; /* init CPUs */ if (cpu_model == NULL) { diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index feb241a..f8d7326 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -27,7 +27,6 @@ typedef struct sPAPREnvironment { long rtas_size; void *fdt_skel; target_ulong entry_point; - uint32_t next_irq; uint64_t rtc_offset; bool has_graphics; -- 1.9.rc0