From f5d0d3e784347b132cfd2ca6778a3b58a4704f8f Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Fri, 15 Nov 2013 04:16:25 +0000 Subject: [PATCH] [FAST486] The CS cached descriptor has the default operand size, even for stack operations. svn path=/branches/ntvdm/; revision=60996 --- lib/fast486/common.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fast486/common.inl b/lib/fast486/common.inl index c2412c035dc..a6ad252c346 100644 --- a/lib/fast486/common.inl +++ b/lib/fast486/common.inl @@ -257,7 +257,7 @@ BOOLEAN Fast486StackPush(PFAST486_STATE State, ULONG Value) { - BOOLEAN Size = State->SegmentRegs[FAST486_REG_SS].Size; + BOOLEAN Size = State->SegmentRegs[FAST486_REG_CS].Size; /* The OPSIZE prefix toggles the size */ if (State->PrefixFlags & FAST486_PREFIX_OPSIZE) Size = !Size; @@ -315,7 +315,7 @@ Fast486StackPop(PFAST486_STATE State, { ULONG LongValue; USHORT ShortValue; - BOOLEAN Size = State->SegmentRegs[FAST486_REG_SS].Size; + BOOLEAN Size = State->SegmentRegs[FAST486_REG_CS].Size; /* The OPSIZE prefix toggles the size */ TOGGLE_OPSIZE(Size);