Author: hbelusca Date: Tue Oct 28 00:19:48 2014 New Revision: 65059
URL: http://svn.reactos.org/svn/reactos?rev=65059&view=rev Log: [FAST486]: We should invalidate the prefetch buffer *after* having fetched the BOP byte (but before calling its handler), not before fetching the byte :)
Modified: trunk/reactos/lib/fast486/opcodes.c
Modified: trunk/reactos/lib/fast486/opcodes.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fast486/opcodes.c?rev=6... ============================================================================== --- trunk/reactos/lib/fast486/opcodes.c [iso-8859-1] (original) +++ trunk/reactos/lib/fast486/opcodes.c [iso-8859-1] Tue Oct 28 00:19:48 2014 @@ -4240,17 +4240,17 @@ { 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)) { /* Exception occurred */ 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);