qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Sparc64 breakage by 16eaedf2668e9b347a59d73346fcc4c764c


From: Anthony Liguori
Subject: Re: [Qemu-devel] Sparc64 breakage by 16eaedf2668e9b347a59d73346fcc4c764c58348
Date: Fri, 10 Jul 2009 14:36:08 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Blue Swirl wrote:
Hi,

APB is not converted to qdev yet, so pci_register_secondary_bus
shouldn't use FROM_QBUS. Sparc64 is currently broken.

Partially reverting 16eaed... fixes the breakage:
diff --git a/hw/pci.c b/hw/pci.c
index 71d9227..f592925 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -135,7 +135,7 @@ static PCIBus
*pci_register_secondary_bus(PCIDevice *dev, pci_map_irq_fn map_irq
 {
     PCIBus *bus;

-    bus = FROM_QBUS(PCIBus, qbus_create(&pci_bus_info, &dev->qdev, NULL));
+    bus = qemu_mallocz(sizeof(PCIBus));
     bus->map_irq = map_irq;
     bus->parent_dev = dev;
     bus->next = dev->bus->next;

Gerd, could you take a look?

Blue, you mentioned that you have an openbios-sparc64 image for testing? Would that have uncovered this and if so, do you have a link handy?

Regards,

Anthony Liguori





reply via email to

[Prev in Thread] Current Thread [Next in Thread]