From 8c2edd432bb28bbea390dfe16e7db1ae1d4f34d2 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 25 Dec 2017 10:21:22 -0800 Subject: [PATCH] irjit: Allow continuing from mips break. Some games currently generate break instructions, and can be played otherwise. Should be fixed, but let's not hard crash. --- Core/MIPS/IR/IRInterpreter.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Core/MIPS/IR/IRInterpreter.cpp b/Core/MIPS/IR/IRInterpreter.cpp index f58a0abc28..f3a56ba51c 100644 --- a/Core/MIPS/IR/IRInterpreter.cpp +++ b/Core/MIPS/IR/IRInterpreter.cpp @@ -789,8 +789,11 @@ u32 IRInterpret(MIPSState *mips, const IRInst *inst, const u32 *constPool, int c } case IROp::Break: - Crash(); - break; + if (!g_Config.bIgnoreBadMemAccess) { + Core_EnableStepping(true); + host->SetDebugMode(true); + } + return mips->pc + 4; case IROp::SetCtrlVFPU: mips->vfpuCtrl[inst->dest] = constPool[inst->src1];