PowerPC: Fix for calling InvalidateICacheLines() with a count of 1 causing a (harmless) second invalidation.

This commit is contained in:
Admiral H. Curtiss 2021-08-19 22:54:34 +02:00
parent 3aaab25810
commit f5cd17925a
1 changed files with 1 additions and 1 deletions

View File

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