[Android] in CArmRecompilerOps::CompileInterpterCall load the variable after BeforeCallDirect

This commit is contained in:
zilmar 2016-10-02 07:05:37 +11:00
parent 9a6c8419e9
commit bd2d5b507a
1 changed files with 3 additions and 1 deletions

View File

@ -4490,8 +4490,10 @@ void CArmRecompilerOps::UpdateCounters(CRegInfo & RegSet, bool CheckTimer, bool
void CArmRecompilerOps::CompileInterpterCall(void * Function, const char * FunctionName)
{
MoveConstToVariable(m_Opcode.Hex, (void *)&R4300iOp::m_Opcode.Hex, "&R4300iOp::m_Opcode.Hex");
m_RegWorkingSet.BeforeCallDirect();
MoveConstToArmReg(Arm_R1, m_Opcode.Hex);
MoveConstToArmReg(Arm_R2, (uint32_t)(void *)&R4300iOp::m_Opcode.Hex, "&R4300iOp::m_Opcode.Hex");
StoreArmRegToArmRegPointer(Arm_R1, Arm_R2, 0);
CallFunction(Function, FunctionName);
m_RegWorkingSet.AfterCallDirect();
}