Fixed PIIX MIRQ routing so MIRQ1 routing is no longer incorrectly applied to MIRQ0.
This commit is contained in:
@@ -396,9 +396,9 @@ piix_write(int func, int addr, uint8_t val, void *priv)
|
||||
else
|
||||
fregs[addr] = val & 0xcf;
|
||||
if (val & 0x80)
|
||||
pci_set_mirq_routing(PCI_MIRQ0, PCI_IRQ_DISABLED);
|
||||
pci_set_mirq_routing(PCI_MIRQ0 + (addr & 0x01), PCI_IRQ_DISABLED);
|
||||
else
|
||||
pci_set_mirq_routing(PCI_MIRQ0, val & 0xf);
|
||||
pci_set_mirq_routing(PCI_MIRQ0 + (addr & 0x01), val & 0xf);
|
||||
piix_log("MIRQ%i is %s\n", addr & 0x01, (val & 0x20) ? "disabled" : "enabled");
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user