mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
PCI irq in sync with new Bochs BIOS
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1351 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
66321a11a4
commit
39d2243955
1 changed files with 1 additions and 1 deletions
2
hw/pci.c
2
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue