More correct linear mapping behaviour

This commit is contained in:
Cacodemon345
2024-02-19 04:31:08 +06:00
committed by GitHub
parent cfebf4439b
commit 91aa53d8a6

View File

@@ -1886,10 +1886,10 @@ chips_69000_pci_write(int func, int addr, uint8_t val, void *p)
} }
case 0x13: case 0x13:
{ {
// if (!(chips->pci_conf_status & PCI_COMMAND_MEM)) { if (!chips->linear_mapping.enable) {
// chips->linear_mapping.base = val << 24; chips->linear_mapping.base = val << 24;
// break; break;
// } }
mem_mapping_set_addr(&chips->linear_mapping, val << 24, (1 << 24)); mem_mapping_set_addr(&chips->linear_mapping, val << 24, (1 << 24));
break; break;
} }