From 18e2648a2752562995ffabcea5d1b5b339504f0f Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 14 Dec 2013 15:05:56 -0800 Subject: [PATCH] When importing vars, invalidate jit for HI16 too. --- Core/HLE/sceKernelModule.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 349eba8254..acd14ade12 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -499,6 +499,7 @@ void WriteVarSymbol(u32 exportAddress, u32 relocAddress, u8 type, bool reverse = // We add 1 in that case so that it ends up the right value. u16 high = (full >> 16) + ((full & 0x8000) ? 1 : 0); Memory::Write_U32((it->data & ~0xFFFF) | high, it->addr); + currentMIPS->InvalidateICache(it->addr, 4); } lastHI16Processed = true; }