Commit 39d2243955012581607e8430a6fb33b34f3b09ac
1 parent
66321a11
PCI irq in sync with new Bochs BIOS
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1351 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
hw/pci.c
| @@ -494,7 +494,7 @@ PIIX3State *piix3_state; | @@ -494,7 +494,7 @@ PIIX3State *piix3_state; | ||
| 494 | static inline int pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num) | 494 | static inline int pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num) |
| 495 | { | 495 | { |
| 496 | int slot_addend; | 496 | int slot_addend; |
| 497 | - slot_addend = (pci_dev->devfn >> 3); | 497 | + slot_addend = (pci_dev->devfn >> 3) - 1; |
| 498 | return (irq_num + slot_addend) & 3; | 498 | return (irq_num + slot_addend) & 3; |
| 499 | } | 499 | } |
| 500 | 500 |