diff --git a/hw/ppc/pegasos.c b/hw/ppc/pegasos.c index 3a498edd16..8ce185de3e 100644 --- a/hw/ppc/pegasos.c +++ b/hw/ppc/pegasos.c @@ -847,7 +847,7 @@ static struct { static void add_pci_device(PCIBus *bus, PCIDevice *d, void *opaque) { FDTInfo *fi = opaque; - GString *node = g_string_new(NULL); + GString *node; uint32_t cells[(PCI_NUM_REGIONS + 1) * 5]; int i, j; const char *name = NULL; @@ -871,6 +871,7 @@ static void add_pci_device(PCIBus *bus, PCIDevice *d, void *opaque) break; } } + node = g_string_new(NULL); g_string_printf(node, "%s/%s@%x", fi->path, (name ?: pn), PCI_SLOT(d->devfn)); if (PCI_FUNC(d->devfn)) { diff --git a/pc-bios/dtb/pegasos1.dtb b/pc-bios/dtb/pegasos1.dtb index 3b863b2528..b776861602 100644 Binary files a/pc-bios/dtb/pegasos1.dtb and b/pc-bios/dtb/pegasos1.dtb differ diff --git a/pc-bios/dtb/pegasos2.dtb b/pc-bios/dtb/pegasos2.dtb index 29c35216ec..a6935a8c23 100644 Binary files a/pc-bios/dtb/pegasos2.dtb and b/pc-bios/dtb/pegasos2.dtb differ