From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQ7LE-0003JI-4L for qemu-devel@nongnu.org; Fri, 27 May 2011 20:25:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQ7LD-0008HT-Cp for qemu-devel@nongnu.org; Fri, 27 May 2011 20:25:20 -0400 Received: from cantor.suse.de ([195.135.220.2]:37580 helo=mx1.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQ7LD-0008HP-86 for qemu-devel@nongnu.org; Fri, 27 May 2011 20:25:19 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id D125294109 for ; Sat, 28 May 2011 02:25:18 +0200 (CEST) From: Alexander Graf Date: Thu, 26 May 2011 21:56:25 +0200 Message-Id: <1306439785-25330-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH] PPC: fix mpc8544ds pci default devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org Developers" 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 --- hw/ppce500_mpc8544ds.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index 17b0165..6b57fbf 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"); -- 1.6.0.2