OSDN Git Service

ppc/pnv: Use QOM hierarchy to scan PEC PHB4 devices
authorCédric Le Goater <clg@kaod.org>
Fri, 17 Dec 2021 16:57:19 +0000 (17:57 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 17 Dec 2021 16:57:19 +0000 (17:57 +0100)
commit0e6232bc3cb96bdf6fac1b5d7659aa9887afe657
treee87d036d25e7237ea65bc21b96bfe6c98e1d8d56
parent13480fc58a57e5274894cdb87120fd49c9c95ddc
ppc/pnv: Use QOM hierarchy to scan PEC PHB4 devices

When -nodefaults is supported for PHB4 devices, the pecs array under
the chip will be empty. This will break the 'info pic' HMP command.

Do a QOM loop on the chip children and look for PEC PHB4 devices
instead.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20211213132830.108372-15-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/pnv.c