diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-03-28 16:34:12 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-04-02 15:04:15 -0500 |
commit | f05f6b4adb4db3affb0cdd17383b0a7e905e66e1 (patch) | |
tree | c95bfd1b99970b8cf0b3ac8aa3a7635fe19924d3 /hw/ppc_prep.c | |
parent | da57febfed7bad11be79f047b59719c38abd0712 (diff) | |
download | hqemu-f05f6b4adb4db3affb0cdd17383b0a7e905e66e1.zip hqemu-f05f6b4adb4db3affb0cdd17383b0a7e905e66e1.tar.gz |
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>
Diffstat (limited to 'hw/ppc_prep.c')
-rw-r--r-- | hw/ppc_prep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c index 86c9336..9d8e659 100644 --- a/hw/ppc_prep.c +++ b/hw/ppc_prep.c @@ -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) { |