aboutsummaryrefslogtreecommitdiff
path: root/include/hw/ppc
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2017-02-27 15:29:29 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2017-03-01 11:23:40 +1100
commit2192a9303d43ee5e1b2b65f5ed9a93922bcdd1df (patch)
tree1e4abc094d5f79aa0a3ef6509d98b405c9e6aa0b /include/hw/ppc
parent852ad27e14325be69c1afa2bb940ba7dc2ba1a8f (diff)
downloadqemu-2192a9303d43ee5e1b2b65f5ed9a93922bcdd1df.zip
qemu-2192a9303d43ee5e1b2b65f5ed9a93922bcdd1df.tar.gz
qemu-2192a9303d43ee5e1b2b65f5ed9a93922bcdd1df.tar.bz2
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/ppc')
-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 50a5933..b0b01e2 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 */