spapr: Eliminate SpaprIrq::init hook
commitf478d9af213f169449f7aaba7257aba1a4032e1e
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 30 Sep 2019 02:24:43 +0000 (30 12:24 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 4 Oct 2019 09:08:23 +0000 (4 19:08 +1000)
treea36df714fba83f59082661cb26ea735ebd6f9204
parent0a3fd3df6f6a9b318909ab8400172d2d5a42abf9
spapr: Eliminate SpaprIrq::init hook

This method is used to set up the interrupt backends for the current
configuration.  However, this means some confusing redirection between
the "dual" mode init and the init hooks for xics only and xive only modes.

Since we now have simple flags indicating whether XICS and/or XIVE are
supported, it's easier to just open code each initialization directly in
spapr_irq_init().  This will also make some future cleanups simpler.

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