mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
qdev: put all devices under /machine
Avoid cluttering too much the QOM root. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
da57febfed
commit
f05f6b4adb
5 changed files with 18 additions and 5 deletions
|
@ -615,7 +615,7 @@ static void ppc_prep_init (ram_addr_t ram_size,
|
|||
sys = sysbus_from_qdev(dev);
|
||||
pcihost = DO_UPCAST(PCIHostState, busdev, sys);
|
||||
pcihost->address_space = get_system_memory();
|
||||
object_property_add_child(object_get_root(), "raven", OBJECT(dev), NULL);
|
||||
object_property_add_child(qdev_get_machine(), "raven", OBJECT(dev), NULL);
|
||||
qdev_init_nofail(dev);
|
||||
pci_bus = (PCIBus *)qdev_get_child_bus(dev, "pci.0");
|
||||
if (pci_bus == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue