xics: Create sPAPR specific ICS subtype
commit9db8c551c98c285bad2ed19ce28a721d33c20d2f
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 24 Sep 2019 05:51:55 +0000 (24 15:51 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 4 Oct 2019 09:08:22 +0000 (4 19:08 +1000)
treecd1b1c38ef8e6b0a4a0a142949759abfef7be71e
parent642e92719e2790dfa0e12be1cfd822a0ff2322aa
xics: Create sPAPR specific ICS subtype

We create a subtype of TYPE_ICS specifically for sPAPR.  For now all this
does is move the setup of the PAPR specific hcalls and RTAS calls to
the realize() function for this, rather than requiring the PAPR code to
explicitly call xics_spapr_init().  In future it will have some more
function.

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/intc/xics_spapr.c
hw/ppc/spapr_irq.c
include/hw/ppc/xics_spapr.h