From d394282bc60eb70eec72bd7fa470b5dc79d69eef Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Tue, 10 Dec 2013 20:34:07 +0100 Subject: [PATCH] Don't crash trying to clear the icache in interpreter mode --- Core/MIPS/MIPSInt.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/MIPS/MIPSInt.cpp b/Core/MIPS/MIPSInt.cpp index 39bd78ec84..471a6f0e6b 100644 --- a/Core/MIPS/MIPSInt.cpp +++ b/Core/MIPS/MIPSInt.cpp @@ -129,7 +129,9 @@ namespace MIPSInt // Icache case 8: // Invalidate the instruction cache at this address - MIPSComp::jit->ClearCacheAt(addr, 0x40); + if (MIPSComp::jit) { + MIPSComp::jit->ClearCacheAt(addr, 0x40); + } break; // Dcache