[FAST486]

- Display a DPRINT when the CPU triple-faults.
- Add the Ac flag to the dump function.

svn path=/trunk/; revision=64382
This commit is contained in:
Hermès Bélusca-Maïto 2014-09-28 22:00:04 +00:00
parent 2245653d55
commit f455bcf161
2 changed files with 6 additions and 1 deletions

View file

@ -317,6 +317,10 @@ Fast486ExceptionWithErrorCode(PFAST486_STATE State,
/* Check if this is a triple fault */ /* Check if this is a triple fault */
if (State->ExceptionCount == 3) if (State->ExceptionCount == 3)
{ {
DPRINT("Fast486ExceptionWithErrorCode(%04X:%08X) -- Triple fault\n",
State->SegmentRegs[FAST486_REG_CS].Selector,
State->InstPtr.Long);
/* Reset the CPU */ /* Reset the CPU */
Fast486Reset(State); Fast486Reset(State);
return; return;

View file

@ -346,7 +346,7 @@ Fast486DumpState(PFAST486_STATE State)
State->SegmentRegs[FAST486_REG_GS].Base, State->SegmentRegs[FAST486_REG_GS].Base,
State->SegmentRegs[FAST486_REG_GS].Limit, State->SegmentRegs[FAST486_REG_GS].Limit,
State->SegmentRegs[FAST486_REG_GS].Dpl); State->SegmentRegs[FAST486_REG_GS].Dpl);
DbgPrint("\nFlags: %08X (%s %s %s %s %s %s %s %s %s %s %s %s) Iopl: %u\n", DbgPrint("\nFlags: %08X (%s %s %s %s %s %s %s %s %s %s %s %s %s) Iopl: %u\n",
State->Flags.Long, State->Flags.Long,
State->Flags.Cf ? "CF" : "cf", State->Flags.Cf ? "CF" : "cf",
State->Flags.Pf ? "PF" : "pf", State->Flags.Pf ? "PF" : "pf",
@ -360,6 +360,7 @@ Fast486DumpState(PFAST486_STATE State)
State->Flags.Nt ? "NT" : "nt", State->Flags.Nt ? "NT" : "nt",
State->Flags.Rf ? "RF" : "rf", State->Flags.Rf ? "RF" : "rf",
State->Flags.Vm ? "VM" : "vm", State->Flags.Vm ? "VM" : "vm",
State->Flags.Ac ? "AC" : "ac",
State->Flags.Iopl); State->Flags.Iopl);
DbgPrint("\nControl Registers:\n" DbgPrint("\nControl Registers:\n"
"CR0 = %08X\tCR2 = %08X\tCR3 = %08X\n", "CR0 = %08X\tCR2 = %08X\tCR3 = %08X\n",