[Project64] Add case in CArmRecompilerOps::LWC1

This commit is contained in:
zilmar 2016-11-23 18:02:19 +11:00
parent a9f613dd7a
commit e8a54ffa2d
1 changed files with 10 additions and 1 deletions

View File

@ -2495,7 +2495,16 @@ void CArmRecompilerOps::LWC1()
CompileCop1Test();
if (IsConst(m_Opcode.base))
{
g_Notify->BreakPoint(__FILE__, __LINE__);
uint32_t Address = GetMipsRegLo(m_Opcode.base) + (int16_t)m_Opcode.offset;
ArmReg TempRegValue = Map_TempReg(Arm_Any, -1, false);
LW_KnownAddress(TempRegValue, Address);
ArmReg FprReg = Map_Variable(CArmRegInfo::VARIABLE_FPR);
ArmReg TempRegAddress = Map_TempReg(Arm_Any, -1, false);
LoadArmRegPointerToArmReg(TempRegAddress, FprReg, (uint8_t)(m_Opcode.ft << 2));
StoreArmRegToArmRegPointer(TempRegValue, TempRegAddress, 0);
return;
}
ArmReg TempRegAddress;
if (IsMapped(m_Opcode.base))