From: Alexander Graf Date: Fri, 27 May 2011 01:23:26 +0000 (+0200) Subject: PPC: fix mpc8544ds pci default devices X-Git-Tag: v0.15.0-rc0~226^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d461e3b9296c706043002cd2a63a7ae8ecdc431c;p=qemu-xen-4.2-testing.git PPC: fix mpc8544ds pci default devices 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 --- diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index 17b016553..6b57fbf59 100644 --- a/hw/ppce500_mpc8544ds.c +++ b/hw/ppce500_mpc8544ds.c @@ -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");