summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc/spapr_irq.h
diff options
context:
space:
mode:
authorDavid Gibson2019-09-24 03:34:12 +0200
committerDavid Gibson2019-10-04 11:08:22 +0200
commitfe9b61b2468a6de170ae0e9afe92fa1daa7ab48b (patch)
treeef13241f6da1c7238b05a863bc481269256338ee /include/hw/ppc/spapr_irq.h
parentspapr: Clarify and fix handling of nr_irqs (diff)
downloadqemu-fe9b61b2468a6de170ae0e9afe92fa1daa7ab48b.tar.gz
qemu-fe9b61b2468a6de170ae0e9afe92fa1daa7ab48b.tar.xz
qemu-fe9b61b2468a6de170ae0e9afe92fa1daa7ab48b.zip
spapr: Eliminate nr_irqs parameter to SpaprIrq::init
The only reason this parameter was needed was to work around the inconsistent meaning of nr_irqs between xics and xive. Now that we've fixed that, we can consistently use the number directly in the SpaprIrq configuration. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'include/hw/ppc/spapr_irq.h')
-rw-r--r--include/hw/ppc/spapr_irq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/ppc/spapr_irq.h b/include/hw/ppc/spapr_irq.h
index a8f9a2ab11..7e26288fcd 100644
--- a/include/hw/ppc/spapr_irq.h
+++ b/include/hw/ppc/spapr_irq.h
@@ -41,7 +41,7 @@ typedef struct SpaprIrq {
uint32_t nr_msis;
uint8_t ov5;
- void (*init)(SpaprMachineState *spapr, int nr_irqs, Error **errp);
+ void (*init)(SpaprMachineState *spapr, Error **errp);
int (*claim)(SpaprMachineState *spapr, int irq, bool lsi, Error **errp);
void (*free)(SpaprMachineState *spapr, int irq, int num);
qemu_irq (*qirq)(SpaprMachineState *spapr, int irq);