[FAST486]: We should invalidate the prefetch buffer *after* having fetched the BOP byte (but before calling its handler), not before fetching the byte :)

svn path=/trunk/; revision=65059
This commit is contained in:
Hermès Bélusca-Maïto 2014-10-28 00:19:48 +00:00
parent bd446bbb01
commit af80d3517d

View 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);