projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74ce674
)
PCI IRC routing fix.
author
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 28 Sep 2006 19:52:59 +0000
(19:52 +0000)
committer
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 28 Sep 2006 19:52:59 +0000
(19:52 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2185
c046a42c
-6fe2-441c-8c8c-
71466251a162
hw/pci.c
patch
|
blob
|
history
diff --git
a/hw/pci.c
b/hw/pci.c
index 7c9db0e8d4493b61d6eed53f6056e5b6b0684c94..bc7c779e59cdad6ef67eb83290c913506883e494 100644
(file)
--- a/
hw/pci.c
+++ b/
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) {
+ 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 = pci_dev->bus;
}
bus->irq_count[irq_num] += change;
bus->set_irq(bus->irq_opaque, irq_num, bus->irq_count[irq_num] != 0);