]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/ppc: realize the PCI root bus as part of mac99 init
authorMarcel Apfelbaum <marcel@redhat.com>
Mon, 27 Jun 2016 15:38:31 +0000 (18:38 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 4 Jul 2016 11:50:01 +0000 (14:50 +0300)
Mac99's PCI root bus is not part of a host bridge,
realize it manually.

Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/ppc/mac_newworld.c

index 32e88b3786871a30e4ad192d329e233c41c0e5a6..7d2510658d0f4fda18efcaf41d9af1a22b3d83ff 100644 (file)
@@ -380,6 +380,7 @@ static void ppc_core99_init(MachineState *machine)
         pci_bus = pci_pmac_init(pic, get_system_memory(), get_system_io());
         machine_arch = ARCH_MAC99;
     }
+    object_property_set_bool(OBJECT(pci_bus), true, "realized", &error_abort);
 
     machine->usb |= defaults_enabled() && !machine->usb_disabled;