spapr, xics, xive: Move set_irq from SpaprIrq to SpaprInterruptController
commit7bcdbcca2f498b8c93f33241488305a3694a941c
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 26 Sep 2019 06:09:46 +0000 (26 16:09 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Oct 2019 22:36:55 +0000 (24 09:36 +1100)
tree7fe157d347c2b971da3b1b4825a6afb24371b641
parent81106ddd1aee5c06e390eaffb07f857f925628f4
spapr, xics, xive: Move set_irq from SpaprIrq to SpaprInterruptController

This method depends only on the active irq controller.  Now that we've
formalized the notion of active controller we can dispatch directly through
that, rather than dispatching via SpaprIrq with the dual version having
to do a second conditional dispatch.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
hw/intc/spapr_xive.c
hw/intc/xics_spapr.c
hw/ppc/spapr_irq.c
include/hw/ppc/spapr_irq.h