From f5cd17925a747b76b3f3c0fc3c0e4199566bffa8 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Thu, 19 Aug 2021 22:54:34 +0200 Subject: [PATCH] PowerPC: Fix for calling InvalidateICacheLines() with a count of 1 causing a (harmless) second invalidation. --- Source/Core/Core/PowerPC/JitInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/JitInterface.cpp b/Source/Core/Core/PowerPC/JitInterface.cpp index 60874adfda..9c77b7bfb2 100644 --- a/Source/Core/Core/PowerPC/JitInterface.cpp +++ b/Source/Core/Core/PowerPC/JitInterface.cpp @@ -240,7 +240,7 @@ void InvalidateICacheLines(u32 address, u32 count) // with an extra optimization for the case of a single cache line invalidation if (count == 1) InvalidateICacheLine(address); - if (count == 0 || count >= static_cast(0x1'0000'0000 / 32)) + else if (count == 0 || count >= static_cast(0x1'0000'0000 / 32)) InvalidateICache(address & ~0x1f, 0xffffffff, false); else InvalidateICache(address & ~0x1f, 32 * count, false);