[Core] Clean up some warnings

This commit is contained in:
zilmar 2022-05-03 22:46:12 +09:30
parent 5a49331c0b
commit de366db6c1
2 changed files with 4 additions and 4 deletions

View File

@ -875,8 +875,8 @@ void CMipsMemoryVM::TLB_Unmaped(uint32_t Vaddr, uint32_t Len)
size_t Index = Address >> 12; size_t Index = Address >> 12;
m_MemoryReadMap[Index] = (size_t)-1; m_MemoryReadMap[Index] = (size_t)-1;
m_MemoryWriteMap[Index] = (size_t)-1; m_MemoryWriteMap[Index] = (size_t)-1;
m_TLB_ReadMap[Index] = -1; m_TLB_ReadMap[Index] = (uint32_t)-1;
m_TLB_WriteMap[Index] = -1; m_TLB_WriteMap[Index] = (uint32_t)-1;
} }
} }

View File

@ -211,7 +211,7 @@ void CArmRecompilerOps::Compile_Branch(BRANCH_COMPARE CompareType, BRANCH_TYPE B
case BranchTypeRsRt: EffectDelaySlot = DelaySlotEffectsCompare(m_CompilePC, m_Opcode.rs, m_Opcode.rt); break; case BranchTypeRsRt: EffectDelaySlot = DelaySlotEffectsCompare(m_CompilePC, m_Opcode.rs, m_Opcode.rt); break;
case BranchTypeCop1: case BranchTypeCop1:
if (!g_MMU->LW_VAddr(m_CompilePC + 4, Command.Hex)) if (!g_MMU->MemoryValue32(m_CompilePC + 4, Command.Hex))
{ {
g_Notify->FatalError(GS(MSG_FAIL_LOAD_WORD)); g_Notify->FatalError(GS(MSG_FAIL_LOAD_WORD));
} }
@ -5847,7 +5847,7 @@ void CArmRecompilerOps::SetCurrentPC(uint32_t ProgramCounter)
m_CompilePC = ProgramCounter; m_CompilePC = ProgramCounter;
__except_try() __except_try()
{ {
if (!g_MMU->LW_VAddr(m_CompilePC, m_Opcode.Hex)) if (!g_MMU->MemoryValue32(m_CompilePC, m_Opcode.Hex))
{ {
g_Notify->FatalError(GS(MSG_FAIL_LOAD_WORD)); g_Notify->FatalError(GS(MSG_FAIL_LOAD_WORD));
} }