From befa57924dbb0c055e27669dcd94c1c7a1bd7f16 Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 5 Oct 2023 15:01:09 +1030 Subject: [PATCH] Core: Fix clang compile issues --- Source/Project64-core/N64System/Mips/TLB.cpp | 10 +++++----- Source/Project64-core/N64System/Mips/TLB.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Project64-core/N64System/Mips/TLB.cpp b/Source/Project64-core/N64System/Mips/TLB.cpp index 11ccd11e5..380066e84 100644 --- a/Source/Project64-core/N64System/Mips/TLB.cpp +++ b/Source/Project64-core/N64System/Mips/TLB.cpp @@ -98,7 +98,7 @@ void CTLB::Probe() uint64_t TlbValueMasked = TlbEntryHiValue.Value & Mask; uint64_t EntryHiMasked = m_Reg.ENTRYHI_REGISTER.Value & Mask; - if (TlbValueMasked != EntryHiMasked || + if (TlbValueMasked != EntryHiMasked || TlbEntryHiValue.R != m_Reg.ENTRYHI_REGISTER.R || (m_tlb[i].EntryLo0.GLOBAL == 0 || m_tlb[i].EntryLo1.GLOBAL == 0) && TlbEntryHiValue.ASID != m_Reg.ENTRYHI_REGISTER.ASID) { @@ -414,7 +414,7 @@ MemorySegment CTLB::VAddrMemorySegment(uint64_t VAddr) } if (VAddr <= 0x88000000ffffffffull) { - return MemorySegment_Cached32; //xkphys* + return MemorySegment_Cached32; //xkphys* } if (VAddr <= 0x8fffffffffffffffull) { @@ -505,7 +505,7 @@ MemorySegment CTLB::VAddrMemorySegment(uint64_t VAddr) } if (VAddr <= 0x400000ffffffffffull) //xsseg { - return MemorySegment_Mapped; + return MemorySegment_Mapped; } if (VAddr <= 0xffffffffbfffffffull) { @@ -513,7 +513,7 @@ MemorySegment CTLB::VAddrMemorySegment(uint64_t VAddr) } if (VAddr <= 0xffffffffdfffffffull) //csseg { - return MemorySegment_Mapped; + return MemorySegment_Mapped; } if (VAddr <= 0xffffffffffffffffull) { @@ -524,7 +524,7 @@ MemorySegment CTLB::VAddrMemorySegment(uint64_t VAddr) { if (VAddr <= 0x000000ffffffffffull) { - return MemorySegment_Mapped; //xuseg + return MemorySegment_Mapped; //xuseg } } return MemorySegment_Unused; diff --git a/Source/Project64-core/N64System/Mips/TLB.h b/Source/Project64-core/N64System/Mips/TLB.h index b2c6f1006..536edad88 100644 --- a/Source/Project64-core/N64System/Mips/TLB.h +++ b/Source/Project64-core/N64System/Mips/TLB.h @@ -58,7 +58,7 @@ public: void ReadEntry(); void WriteEntry(uint32_t Index, bool Random); void COP0StatusChanged(void); - bool AddressDefined(uint64_t VAddr, bool & Dirty); + bool AddressDefined(uint64_t VAddr, bool & Dirty); TLB_ENTRY & TlbEntry(int32_t Entry); bool VAddrToPAddr(uint64_t VAddr, uint32_t & PAddr, bool & MemoryUnused);