summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorCédric Le Goater2017-02-27 15:29:29 +0100
committerDavid Gibson2017-03-01 01:23:40 +0100
commit2192a9303d43ee5e1b2b65f5ed9a93922bcdd1df (patch)
tree1e4abc094d5f79aa0a3ef6509d98b405c9e6aa0b /include/hw
parentppc/xics: move the ICP array under the sPAPR machine (diff)
downloadqemu-2192a9303d43ee5e1b2b65f5ed9a93922bcdd1df.tar.gz
qemu-2192a9303d43ee5e1b2b65f5ed9a93922bcdd1df.tar.xz
qemu-2192a9303d43ee5e1b2b65f5ed9a93922bcdd1df.zip
ppc/xics: export the XICS init routines
There is nothing left related to the XICS object in the realize functions of the KVMXICSState and XICSState class. So adapt the interfaces to call these routines directly from the sPAPR machine init sequence. Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/ppc/xics.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h
index 50a5933df5..b0b01e2975 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -224,4 +224,9 @@ void ics_set_irq_type(ICSState *ics, int srcno, bool lsi);
void ics_resend(ICSState *ics);
void icp_resend(ICPState *ss);
+typedef struct sPAPRMachineState sPAPRMachineState;
+
+int xics_kvm_init(sPAPRMachineState *spapr, Error **errp);
+int xics_spapr_init(sPAPRMachineState *spapr, Error **errp);
+
#endif /* XICS_H */