Message ID | 20121022204830.GD23972@redhat.com |
---|---|
State | New |
Headers | show |
--- a/hw/pci_bridge.c +++ b/hw/pci_bridge.c @@ -321,6 +321,9 @@ int pci_bridge_initfn(PCIDevice *dev) qbus_create_inplace(&sec_bus->qbus, TYPE_PCI_BUS, &dev->qdev, br->bus_name); sec_bus->parent_dev = dev; + if (!br->map_irq) { + br->map_irq = pci_swizzle_map_irq_fn; + } sec_bus->map_irq = br->map_irq; sec_bus->address_space_mem = &br->address_space_mem; memory_region_init(&br->address_space_mem, "pci_bridge_pci", INT64_MAX);