jit: Ignore zero byte icache invalidates.

These were getting marked pending and were clearing all cache, causing
performance concerns in for example LittleBigPlanet.
This commit is contained in:
Unknown W. Brackets committed 2022-10-15 18:27:52 -07:00
1 parent cbe31af8cf
commit c4bf2cb5c0
5 files changed
+18 -14

No files matched your search

+2 -1
View File
@@ -392,7 +392,8 @@ int sceKernelDcacheInvalidateRange(u32 addr, int size)
int sceKernelIcacheInvalidateRange(u32 addr, int size) {
DEBUG_LOG(CPU, "sceKernelIcacheInvalidateRange(%08x, %i)", addr, size);
currentMIPS->InvalidateICache(addr, size);
if (size != 0)
currentMIPS->InvalidateICache(addr, size);
return 0;
}