[Android] Add CArmRegInfo::ResetRegProtection
This commit is contained in:
parent
9c8e7309de
commit
cf698d7076
|
@ -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)
|
||||
|
|
|
@ -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]; }
|
||||
|
|
Loading…
Reference in New Issue