From ca7d21eff433310cdec4e96bac4f8b6beb741d0b Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Sat, 19 Oct 2013 18:28:27 +0000 Subject: [PATCH] [FAST486] The 80486 doesn't have any time stamp counter (TSC) at all. svn path=/branches/ntvdm/; revision=60710 --- include/reactos/libs/fast486/fast486.h | 1 - lib/fast486/extraops.c | 6 +++--- lib/fast486/fast486.c | 9 ++------- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/include/reactos/libs/fast486/fast486.h b/include/reactos/libs/fast486/fast486.h index 9188043c27c..07b35891eaf 100644 --- a/include/reactos/libs/fast486/fast486.h +++ b/include/reactos/libs/fast486/fast486.h @@ -335,7 +335,6 @@ struct _FAST486_STATE FAST486_REG InstPtr, SavedInstPtr; FAST486_FLAGS_REG Flags; FAST486_TABLE_REG Gdtr, Idtr, Ldtr, Tss; - ULONGLONG TimeStampCounter; ULONG ControlRegisters[FAST486_NUM_CTRL_REGS]; ULONG DebugRegisters[FAST486_NUM_DBG_REGS]; ULONG ExceptionCount; diff --git a/lib/fast486/extraops.c b/lib/fast486/extraops.c index b4ef965057e..18dc09aaaec 100644 --- a/lib/fast486/extraops.c +++ b/lib/fast486/extraops.c @@ -86,9 +86,9 @@ Fast486ExtendedHandlers[FAST486_NUM_OPCODE_HANDLERS] = NULL, // Invalid NULL, // Invalid NULL, // Invalid - NULL, // TODO: OPCODE 0x30 NOT IMPLEMENTED - NULL, // TODO: OPCODE 0x31 NOT IMPLEMENTED - NULL, // TODO: OPCODE 0x32 NOT IMPLEMENTED + NULL, // Invalid + NULL, // Invalid + NULL, // Invalid NULL, // Invalid NULL, // Invalid NULL, // Invalid diff --git a/lib/fast486/fast486.c b/lib/fast486/fast486.c index 44caf9cab7b..7ec253476cc 100644 --- a/lib/fast486/fast486.c +++ b/lib/fast486/fast486.c @@ -107,9 +107,6 @@ Fast486ExecutionControl(PFAST486_STATE State, INT Command) /* This is a prefix, go to the next instruction immediately */ continue; } - - /* Increment the time stamp counter */ - State->TimeStampCounter++; } while ((Command == FAST486_CONTINUE) || (Command == FAST486_STEP_OVER && ProcedureCallCount > 0) @@ -155,12 +152,10 @@ VOID NTAPI Fast486DumpState(PFAST486_STATE State) { - DPRINT1("\nCPU currently executing in %s mode at %04X:%08X\n" - "Time Stamp Counter = %016X\n", + DPRINT1("\nCPU currently executing in %s mode at %04X:%08X\n", (State->ControlRegisters[0] & FAST486_CR0_PE) ? "protected" : "real", State->SegmentRegs[FAST486_REG_CS].Selector, - State->InstPtr.Long, - State->TimeStampCounter); + State->InstPtr.Long); DPRINT1("\nGeneral purpose registers:\n" "EAX = %08X\tECX = %08X\tEDX = %08X\tEBX = %08X\n" "ESP = %08X\tEBP = %08X\tESI = %08X\tEDI = %08X\n",