Interpreter: correctly support HLE functions.

m_EndBlock is always false at the beginning of SingleStepInner in the
normal interpreter loop.
This commit is contained in:
magumagu
2014-05-25 15:39:46 -07:00
parent 010ca048df
commit 98dd99a696

View File

@ -92,7 +92,7 @@ void Trace( UGeckoInstruction &instCode )
int Interpreter::SingleStepInner(void) int Interpreter::SingleStepInner(void)
{ {
static UGeckoInstruction instCode; static UGeckoInstruction instCode;
u32 function = m_EndBlock ? HLE::GetFunctionIndex(PC) : 0; // Check for HLE functions after branches u32 function = HLE::GetFunctionIndex(PC);
if (function != 0) if (function != 0)
{ {
int type = HLE::GetFunctionTypeByIndex(function); int type = HLE::GetFunctionTypeByIndex(function);