Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10044 from AdmiralCurtiss/invalidate-icache-lines…
…-fix

PowerPC: Fix for calling InvalidateICacheLines() with a count of 1 causing a (harmless) second invalidation.
  • Loading branch information
lioncash committed Aug 19, 2021
2 parents 3aaab25 + f5cd179 commit 17a01c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/JitInterface.cpp
Expand Up @@ -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<u32>(0x1'0000'0000 / 32))
else if (count == 0 || count >= static_cast<u32>(0x1'0000'0000 / 32))
InvalidateICache(address & ~0x1f, 0xffffffff, false);
else
InvalidateICache(address & ~0x1f, 32 * count, false);
Expand Down

0 comments on commit 17a01c8

Please sign in to comment.