ppc/xics: register reset handlers for the ICP and ICS objects
authorCédric Le Goater <clg@kaod.org>
Fri, 3 Mar 2017 12:51:03 +0000 (13:51 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sun, 5 Mar 2017 23:07:38 +0000 (10:07 +1100)
commit7ea6e0671754330510bcdde2e7f5b5f2db426472
treec53a959c7e1b042436455af29276527d469cde7d
parent17783ac828adc694d986698d2d7014aedfeb48c6
ppc/xics: register reset handlers for the ICP and ICS objects

The recent changes on the XICS layer removed the XICSState object to
let the sPAPR machine handle the ICP and ICS directly. The reset of
these objects was previously handled by XICSState, which was a SysBus
device, and to keep the same behavior, the ICP and ICS were assigned
to SysbBus.

But that broke the 'info qtree' command in the monitor. 'qtree'
performs a loop on the children of a bus to print their properties and
SysBus devices are expected to be found under SysBus, which is not the
case anymore.

The fix for this problem is to register reset handlers for the ICP and
ICS objects and stop using SysBus for such devices.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/xics.c
hw/intc/xics_kvm.c
hw/ppc/spapr.c