[FAST486]: We should invalidate the prefetch buffer *after* having fetched the BOP...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 28 Oct 2014 00:19:48 +0000 (00:19 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 28 Oct 2014 00:19:48 +0000 (00:19 +0000)
svn path=/trunk/; revision=65059

reactos/lib/fast486/opcodes.c

index 101361b..9337988 100644 (file)
@@ -4240,11 +4240,6 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeLdsLes)
         {
             UCHAR BopCode;
 
-#ifndef FAST486_NO_PREFETCH
-            /* Invalidate the prefetch since BOP handlers can alter the memory */
-            State->PrefetchValid = FALSE;
-#endif
-
             /* Fetch the BOP code */
             if (!Fast486FetchByte(State, &BopCode))
             {
@@ -4252,6 +4247,11 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeLdsLes)
                 return;
             }
 
+#ifndef FAST486_NO_PREFETCH
+            /* Invalidate the prefetch since BOP handlers can alter the memory */
+            State->PrefetchValid = FALSE;
+#endif
+
             /* Call the BOP handler */
             State->BopCallback(State, BopCode);