jit: Fix reporting of icache invalidate near PC.

Reversed the check, that's what I get for not testing it.
This commit is contained in:
Unknown W. Brackets 2023-01-11 20:22:09 -08:00
parent fb0ed6e165
commit 8341b09087

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);
}