ALi M6117-related CPU fixes.

This commit is contained in:
OBattler
2022-07-18 23:38:06 +02:00
parent 52f8d68fb0
commit 645c4e6902
5 changed files with 12 additions and 3 deletions

View File

@@ -83,7 +83,10 @@ seg_reset(x86seg *s)
if (s == &cpu_state.seg_cs) {
if (!cpu_inited)
fatal("seg_reset(&cpu_state.seg.cs) without an initialized CPU\n");
s->base = is286 ? (cpu_16bitbus ? 0x00ff0000 : 0xffff0000) : 0x000ffff0;
if (is6117)
s->base = 0x03ff0000;
else
s->base = is286 ? (cpu_16bitbus ? 0x00ff0000 : 0xffff0000) : 0x000ffff0;
s->seg = is286 ? 0xf000 : 0xffff;
} else {
s->base = 0;