diff options
| author | Cédric Le Goater <clg@kaod.org> | 2017-02-27 15:29:19 +0100 |
|---|---|---|
| committer | David Gibson <david@gibson.dropbear.id.au> | 2017-03-01 11:23:39 +1100 |
| commit | c79b2fdd7bfc51de5f93c7008f7ed6a262389ed6 (patch) | |
| tree | e9d282884d95ef9e303c419d81391f7bf018f924 /hw/ppc/spapr.c | |
| parent | be1fe35199e29bd662b9c7e36c97ccb7122f3fee (diff) | |
| download | focaccia-qemu-c79b2fdd7bfc51de5f93c7008f7ed6a262389ed6.tar.gz focaccia-qemu-c79b2fdd7bfc51de5f93c7008f7ed6a262389ed6.zip | |
ppc/xics: register the reset handler of ICS objects
The reset of the ICS objects is currently handled by XICS but this can be done for each individual ICS. This also reduces the use of the XICS list of ICS. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc/spapr.c')
| -rw-r--r-- | hw/ppc/spapr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index a4e4b86d37..a5e6072a80 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -114,6 +114,7 @@ static XICSState *try_create_xics(sPAPRMachineState *spapr, } ics = ICS_SIMPLE(object_new(type_ics)); + qdev_set_parent_bus(DEVICE(ics), sysbus_get_default()); object_property_add_child(OBJECT(spapr), "ics", OBJECT(ics), NULL); object_property_set_int(OBJECT(ics), nr_irqs, "nr-irqs", &err); object_property_add_const_link(OBJECT(ics), "xics", OBJECT(xics), NULL); |