diff options
author | Cédric Le Goater <clg@kaod.org> | 2017-02-27 15:29:17 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-03-01 11:23:39 +1100 |
commit | 2cd908d0add803886c310084145fecc93f080a63 (patch) | |
tree | f42a461eff00fe978e9462705da17a628e3208e3 /hw/ppc | |
parent | f7759e4331ed04b2128af36efd395e55e3076406 (diff) |
ppc/xics: use the QOM interface to resend irqs
Also change the ICPState 'xics' backlink to be a XICSFabric, this
removes the need of using qdev_get_machine() to get the QOM interface
in some of the routines.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc')
-rw-r--r-- | hw/ppc/spapr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index c6cef04b4e..a4e4b86d37 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -100,6 +100,7 @@ static XICSState *try_create_xics(sPAPRMachineState *spapr, const char *type_icp, int nr_servers, int nr_irqs, Error **errp) { + XICSFabric *xi = XICS_FABRIC(spapr); Error *err = NULL, *local_err = NULL; XICSState *xics; ICSState *ics = NULL; @@ -131,7 +132,7 @@ static XICSState *try_create_xics(sPAPRMachineState *spapr, object_initialize(icp, sizeof(*icp), type_icp); object_property_add_child(OBJECT(xics), "icp[*]", OBJECT(icp), NULL); - object_property_add_const_link(OBJECT(icp), "xics", OBJECT(xics), NULL); + object_property_add_const_link(OBJECT(icp), "xics", OBJECT(xi), NULL); object_property_set_bool(OBJECT(icp), true, "realized", &err); if (err) { goto error; |