]> git.proxmox.com Git - qemu.git/commitdiff
PPC: fix mpc8544ds pci default devices
authorAlexander Graf <agraf@suse.de>
Fri, 27 May 2011 01:23:26 +0000 (03:23 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 3 Jun 2011 10:42:19 +0000 (12:42 +0200)
After the Qdev'ification of the MPC8544DS board and PCI bus, the internal
PCI bus name changed from "pci" to "pci.0". Reflect this change in the
search for that bus.

This patch enables networking on e500 guests again.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppce500_mpc8544ds.c

index 17b01655336e5e17c5d942751090779c1a9fa1eb..6b57fbf597c97f04f394c0c1c5e9bc3241effd96 100644 (file)
@@ -275,7 +275,7 @@ static void mpc8544ds_init(ram_addr_t ram_size,
                                 mpic[pci_irq_nrs[0]], mpic[pci_irq_nrs[1]],
                                 mpic[pci_irq_nrs[2]], mpic[pci_irq_nrs[3]],
                                 NULL);
-    pci_bus = (PCIBus *)qdev_get_child_bus(dev, "pci");
+    pci_bus = (PCIBus *)qdev_get_child_bus(dev, "pci.0");
     if (!pci_bus)
         printf("couldn't create PCI controller!\n");