1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-04-21 18:37:11 +00:00

Set an initial A20 state.

This commit is contained in:
Thomas Harte 2025-03-26 07:35:17 -04:00
parent 8b1543d9c9
commit b34702e370

View File

@ -211,6 +211,10 @@ struct LinearMemory<model, std::enable_if_t<model <= InstructionSet::x86::Model:
template <>
struct LinearMemory<InstructionSet::x86::Model::i80286>: public LinearPool<1 << 24> {
LinearMemory() {
set_a20_enabled(false);
}
// A20 is the only thing that can cause split accesses on an 80286.
void set_a20_enabled(const bool enabled) {
address_mask_ = uint32_t(~0);