Fixed a CPU reset mess.

This commit is contained in:
OBattler
2021-12-19 19:14:21 +01:00
parent bdc8c711bf
commit 9ec4fd3bdd
2 changed files with 6 additions and 18 deletions

View File

@@ -570,15 +570,9 @@ reset_808x(int hard)
pfq_clear(); pfq_clear();
} }
if (AT) {
load_cs(0xF000);
cpu_state.pc = 0xFFF0;
rammask = cpu_16bitbus ? 0xFFFFFF : 0xFFFFFFFF;
} else {
load_cs(0xFFFF); load_cs(0xFFFF);
cpu_state.pc = 0; cpu_state.pc = 0;
rammask = 0xfffff; rammask = 0xfffff;
}
prefetching = 1; prefetching = 1;
cpu_alu_op = 0; cpu_alu_op = 0;

View File

@@ -264,15 +264,9 @@ reset_common(int hard)
cpu_state.eflags = 0; cpu_state.eflags = 0;
cgate32 = 0; cgate32 = 0;
if (is286) { if (is286) {
if (AT) {
loadcs(0xF000); loadcs(0xF000);
cpu_state.pc = 0xFFF0; cpu_state.pc = 0xFFF0;
rammask = cpu_16bitbus ? 0xFFFFFF : 0xFFFFFFFF; rammask = cpu_16bitbus ? 0xFFFFFF : 0xFFFFFFFF;
} else {
loadcs(0xFFFF);
cpu_state.pc = 0;
rammask = 0xfffff;
}
} }
idt.base = 0; idt.base = 0;
cpu_state.flags = 2; cpu_state.flags = 2;