PCI IRC routing fix.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2185 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
74ce674fa8
commit
5e966ce6f4
9
hw/pci.c
9
hw/pci.c
|
@ -435,11 +435,12 @@ void pci_set_irq(PCIDevice *pci_dev, int irq_num, int level)
|
|||
return;
|
||||
|
||||
pci_dev->irq_state[irq_num] = level;
|
||||
bus = pci_dev->bus;
|
||||
while (!bus->set_irq) {
|
||||
irq_num = bus->map_irq(pci_dev, irq_num);
|
||||
pci_dev = bus->parent_dev;
|
||||
for (;;) {
|
||||
bus = pci_dev->bus;
|
||||
irq_num = bus->map_irq(pci_dev, irq_num);
|
||||
if (bus->set_irq)
|
||||
break;
|
||||
pci_dev = bus->parent_dev;
|
||||
}
|
||||
bus->irq_count[irq_num] += change;
|
||||
bus->set_irq(bus->irq_opaque, irq_num, bus->irq_count[irq_num] != 0);
|
||||
|
|
Loading…
Reference in a new issue