[Android] Add CArmRegInfo::ResetRegProtection

This commit is contained in:
zilmar 2016-10-01 17:05:33 +10:00
parent 9c8e7309de
commit cf698d7076
2 changed files with 15 additions and 0 deletions

View File

@ -633,6 +633,20 @@ bool CArmRegInfo::UnMap_ArmReg(ArmReg Reg)
return false;
}
void CArmRegInfo::ResetRegProtection()
{
if (m_InCallDirect)
{
CPU_Message("%s: in CallDirect",__FUNCTION__);
g_Notify->BreakPoint(__FILE__, __LINE__);
return;
}
for (uint32_t i = 0, n = sizeof(m_ArmReg_Protected) / sizeof(m_ArmReg_Protected[0]); i < n; i++)
{
SetArmRegProtected((ArmReg)i, false);
}
}
CArmOps::ArmReg CArmRegInfo::FreeArmReg()
{
if (m_InCallDirect)

View File

@ -65,6 +65,7 @@ public:
ArmReg UnMap_TempReg();
void UnMap_GPR(uint32_t Reg, bool WriteBackValue);
bool UnMap_ArmReg(ArmReg Reg);
void ResetRegProtection();
inline ArmReg GetMipsRegMapLo(int32_t Reg) const { return m_RegMapLo[Reg]; }
inline ArmReg GetMipsRegMapHi(int32_t Reg) const { return m_RegMapHi[Reg]; }