Core: Fix clang issue

This commit is contained in:
zilmar 2023-11-16 18:24:47 +10:30
parent 542afc4514
commit d47b49d4b5
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ bool CTLB::VAddrToPAddr(uint64_t VAddr, uint32_t & PAddr, bool & MemoryUnused)
if ((VAddr & AddressMaskHi) != AddressRegion)
{
continue;
}
}
uint64_t AddressSelect = ((m_tlb[i].PageMask.Mask << 12) | 0xfff) + 1;
COP0EntryLo EntryLo = (VAddr & AddressSelect) != 0 ? m_tlb[i].EntryLo1 : m_tlb[i].EntryLo0;
PAddr = (uint32_t)((EntryLo.PFN << 12) + (VAddr & (PageMask | 0x1fff)));