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
@@ -624,7 +624,8 @@ static u32 sceKernelMemcpy(u32 dst, u32 src, u32 size)
DEBUG_LOG(SCEKERNEL, "sceKernelMemcpy(dest=%08x, src=%08x, size=%i)", dst, src, size);
// Some games copy from executable code. We need to flush emuhack ops.
currentMIPS->InvalidateICache(src, size);
if (size != 0)
currentMIPS->InvalidateICache(src, size);
bool skip = false;
if (Memory::IsVRAMAddress(src) || Memory::IsVRAMAddress(dst)) {