Skip to content

Commit

Permalink
More correct linear mapping behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 authored Feb 18, 2024
1 parent cfebf44 commit 91aa53d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/vid_chips_69000.c
Original file line number Diff line number Diff line change
Expand Up @@ -1886,10 +1886,10 @@ chips_69000_pci_write(int func, int addr, uint8_t val, void *p)
}
case 0x13:
{
// if (!(chips->pci_conf_status & PCI_COMMAND_MEM)) {
// chips->linear_mapping.base = val << 24;
// break;
// }
if (!chips->linear_mapping.enable) {
chips->linear_mapping.base = val << 24;
break;
}
mem_mapping_set_addr(&chips->linear_mapping, val << 24, (1 << 24));
break;
}
Expand Down

0 comments on commit 91aa53d

Please sign in to comment.