[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v3 6/9] spapr: Remove @next_irq
From: |
Alexey Kardashevskiy |
Subject: |
[Qemu-ppc] [PATCH v3 6/9] spapr: Remove @next_irq |
Date: |
Fri, 30 May 2014 19:34:17 +1000 |
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 <address@hidden>
---
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 def4f79..07c4cf5 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -867,7 +867,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),
@@ -1271,7 +1271,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 48f9bb4..7d66a34 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;
struct PPCTimebase tb;
bool has_graphics;
--
2.0.0
- [Qemu-ppc] [PATCH v3 0/9] Move interrupts from spapr to xics, Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 4/9] spapr: Move interrupt allocator to xics, Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 8/9] vmstate: Add preallocation for migrating arrays (VMS_ALLOC flag), Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 2/9] xics: Add xics_find_source(), Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 1/9] xics: Add flags for interrupts, Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 6/9] spapr: Remove @next_irq,
Alexey Kardashevskiy <=
- [Qemu-ppc] [PATCH v3 7/9] xics: Implement xics_ics_free(), Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 5/9] xics: Remove obsolete xics_set_irq_type(), Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 9/9] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB, Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 3/9] xics: Disable flags reset on xics reset, Alexey Kardashevskiy, 2014/05/30