mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
ppc/pnv: add PHB4 bus init helper
Similar to what we already did for the PnvPHB3 device, let's add a helper to init the bus when using a PnvPHB4. This helper will be used by PnvPHb when PnvPHB4 turns into a backend. Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com> Message-Id: <20220624084921.399219-5-danielhb413@gmail.com>
This commit is contained in:
parent
1f5d6b2ad1
commit
fe5bfd4bb8
3 changed files with 31 additions and 21 deletions
|
@ -69,6 +69,8 @@ static void pnv_phb_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
if (phb->version == 3) {
|
||||
pnv_phb3_bus_init(dev, PNV_PHB3(phb->backend));
|
||||
} else {
|
||||
pnv_phb4_bus_init(dev, PNV_PHB4(phb->backend));
|
||||
}
|
||||
|
||||
pnv_phb_attach_root_port(pci, phb_rootport_typename,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue