Merge pull request #16796 from unknownbrackets/icache-typo

jit: Fix reporting of icache invalidate near PC
This commit is contained in:
Henrik Rydgård 2023-01-12 07:30:24 +01:00 committed by GitHub
commit 6dc930feb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ namespace MIPSInt
WARN_LOG_REPORT(JIT, "Unaligned icache invalidation of %08x (%08x + %d) at PC=%08x", addr, R(rs), imm, PC);
reportedAlignment = true;
}
if (alignedAddr <= PC + 4 && alignedAddr + size < PC + 4) {
if (alignedAddr <= PC + 4 && alignedAddr + size >= PC - 4) {
// This is probably rare so we don't use a static bool.
WARN_LOG_REPORT_ONCE(icacheInvalidatePC, JIT, "Invalidating address near PC: %08x (%08x + %d) at PC=%08x", addr, R(rs), imm, PC);
}