spapr: Eliminate nr_irqs parameter to SpaprIrq::init
commitfe9b61b2468a6de170ae0e9afe92fa1daa7ab48b
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 24 Sep 2019 01:34:12 +0000 (24 11:34 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 4 Oct 2019 09:08:22 +0000 (4 19:08 +1000)
treeef13241f6da1c7238b05a863bc481269256338ee
parentad8de98636e7cadeb1be4efa997cfe2a60bd5c30
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>
hw/ppc/spapr_irq.c
include/hw/ppc/spapr_irq.h