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/intc/xics.c | |
parent | be1fe35199e29bd662b9c7e36c97ccb7122f3fee (diff) |
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/intc/xics.c')
-rw-r--r-- | hw/intc/xics.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/intc/xics.c b/hw/intc/xics.c index a71d3858b1..97775c2b61 100644 --- a/hw/intc/xics.c +++ b/hw/intc/xics.c @@ -139,16 +139,11 @@ static void ics_simple_pic_print_info(InterruptStatsProvider *obj, static void xics_common_reset(DeviceState *d) { XICSState *xics = XICS_COMMON(d); - ICSState *ics; int i; for (i = 0; i < xics->nr_servers; i++) { device_reset(DEVICE(&xics->ss[i])); } - - QLIST_FOREACH(ics, &xics->ics, list) { - device_reset(DEVICE(ics)); - } } static void xics_common_initfn(Object *obj) |