Universalize the keyboard and mouse latches again, fixes #3280.

This commit is contained in:
OBattler
2023-05-01 01:35:16 +02:00
parent 125315ee61
commit 8fca57aa79
13 changed files with 11 additions and 65 deletions

View File

@@ -151,12 +151,6 @@ ali1533_write(int func, int addr, uint8_t val, void *priv)
break;
case 0x41:
pic_kbd_latch(1);
// pic_kbd_latch(!!(val & 0x80));
if (dev->type == 1)
pic_mouse_latch(!!(val & 0x40) || !(dev->pci_conf[0x78] & 0x02));
else
pic_mouse_latch(!!(val & 0x40));
dev->pci_conf[addr] = val;
break;
@@ -433,7 +427,6 @@ ali1533_write(int func, int addr, uint8_t val, void *priv)
if (dev->type == 1) {
ali1543_log("PCI78 = %02X\n", val);
dev->pci_conf[addr] = val & 0x33;
pic_mouse_latch(!!(dev->pci_conf[0x41] & 0x40) || !(val & 0x02));
}
break;