summaryrefslogtreecommitdiff
path: root/qemu/hw/pci.c
diff options
context:
space:
mode:
authorbellard <bellard>2005-04-06 23:00:25 +0000
committerbellard <bellard>2005-04-06 23:00:25 +0000
commita7d3a27e5a508404670ab3094a14b43ea6bc31ef (patch)
treeb964320b2a89e99ca4b373e0a2cdc158fcbce78d /qemu/hw/pci.c
parentfd311003a71ef912d8230cbdadc55d0259b8de1d (diff)
PCI irq in sync with new Bochs BIOS
Diffstat (limited to 'qemu/hw/pci.c')
-rw-r--r--qemu/hw/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu/hw/pci.c b/qemu/hw/pci.c
index 2fed66f0..6035c890 100644
--- a/qemu/hw/pci.c
+++ b/qemu/hw/pci.c
@@ -494,7 +494,7 @@ PIIX3State *piix3_state;
static inline int pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num)
{
int slot_addend;
- slot_addend = (pci_dev->devfn >> 3);
+ slot_addend = (pci_dev->devfn >> 3) - 1;
return (irq_num + slot_addend) & 3;
}