Bump BIOSROMSZ to 4M to accommodate OVMF (#284)

OVMF is 4 megabytes by default, so in order to avoid customizing their
build process we'll want to accommodate a 4M BIOS in Bochs.
This commit is contained in:
Justin Moore 2024-03-15 13:26:56 -05:00 committed by GitHub
parent a3ff473642
commit aac6dd5d13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@
class BX_CPU_C;
// 512K BIOS ROM @0xfff80000
const Bit32u BIOSROMSZ = (1 << 21); // 2M BIOS ROM @0xffe00000, must be a power of 2
const Bit32u BIOSROMSZ = (1 << 22); // 4M BIOS ROM @0xffc00000, must be a power of 2
const Bit32u EXROMSIZE = (0x20000); // ROMs 0xc0000-0xdffff (area 0xe0000-0xfffff=bios mapped)
const Bit32u BIOS_MASK = BIOSROMSZ-1;