Core: In CX86RegInfo::Map_TempReg allow it to use FPStatusReg if it is unprotected

This commit is contained in:
zilmar 2024-04-18 17:28:23 +09:30
parent 1172b6e04d
commit b313640831
1 changed files with 6 additions and 2 deletions

View File

@ -1215,7 +1215,8 @@ asmjit::x86::Gp CX86RegInfo::Map_TempReg(asmjit::x86::Gp Reg, int32_t MipsReg, b
}
}
}
else if (GetX86Mapped(GetIndexFromX86Reg(Reg)) == Stack_Mapped)
else if (GetX86Mapped(GetIndexFromX86Reg(Reg)) == Stack_Mapped ||
GetX86Mapped(GetIndexFromX86Reg(Reg)) == FPStatusReg_Mapped)
{
if (GetX86Protected(GetIndexFromX86Reg(Reg)))
{
@ -1223,7 +1224,10 @@ asmjit::x86::Gp CX86RegInfo::Map_TempReg(asmjit::x86::Gp Reg, int32_t MipsReg, b
g_Notify->BreakPoint(__FILE__, __LINE__);
return x86Reg_Unknown;
}
UnMap_X86reg(Reg);
if (!UnMap_X86reg(Reg))
{
g_Notify->BreakPoint(__FILE__, __LINE__);
}
}
else if (GetX86Mapped(GetIndexFromX86Reg(Reg)) == NotMapped)
{