Revision 39d22439
b/hw/pci.c | ||
---|---|---|
494 | 494 |
static inline int pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num) |
495 | 495 |
{ |
496 | 496 |
int slot_addend; |
497 |
slot_addend = (pci_dev->devfn >> 3); |
|
497 |
slot_addend = (pci_dev->devfn >> 3) - 1;
|
|
498 | 498 |
return (irq_num + slot_addend) & 3; |
499 | 499 |
} |
500 | 500 |
|
Also available in: Unified diff