Correct address mask on 286/386SX systems. Patch from Greatpsycho.
This commit is contained in:
parent
e070341f80
commit
6798ebf0a6
1 changed files with 2 additions and 2 deletions
|
|
@ -2272,12 +2272,12 @@ void mem_a20_recalc()
|
||||||
// pclog("A20 recalc %i %i\n", state, mem_a20_state);
|
// pclog("A20 recalc %i %i\n", state, mem_a20_state);
|
||||||
if (state && !mem_a20_state)
|
if (state && !mem_a20_state)
|
||||||
{
|
{
|
||||||
rammask = 0xffffffff;
|
rammask = (AT && cpu_16bitbus) ? 0xffffff : 0xffffffff;
|
||||||
flushmmucache();
|
flushmmucache();
|
||||||
}
|
}
|
||||||
else if (!state && mem_a20_state)
|
else if (!state && mem_a20_state)
|
||||||
{
|
{
|
||||||
rammask = 0xffefffff;
|
rammask = (AT && cpu_16bitbus) ? 0xefffff : 0xffefffff;
|
||||||
flushmmucache();
|
flushmmucache();
|
||||||
}
|
}
|
||||||
// pclog("rammask now %08X\n", rammask);
|
// pclog("rammask now %08X\n", rammask);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue