diff --git a/Core/MIPS/IR/IRAnalysis.cpp b/Core/MIPS/IR/IRAnalysis.cpp index 22bdada374..e27554d712 100644 --- a/Core/MIPS/IR/IRAnalysis.cpp +++ b/Core/MIPS/IR/IRAnalysis.cpp @@ -42,9 +42,9 @@ static bool IRReadsFrom(const IRInst &inst, int reg, char type, bool *directly) if (directly) *directly = false; - if (inst.op == IROp::Interpret || inst.op == IROp::CallReplacement || inst.op == IROp::Syscall || inst.op == IROp::Break) + if (inst.op == IROp::Interpret || inst.op == IROp::CallReplacement) return true; - if (inst.op == IROp::Breakpoint || inst.op == IROp::MemoryCheck) + if ((m->flags & IRFLAG_EXIT) != 0) return true; return false; }