Debugger: Remove delay slot for ERET and SYSCALL opcodes

This commit is contained in:
kozarovv authored and refractionpcsx2 committed 2020-11-19 13:43:00 +00:00
1 parent 5a77ed14bf
commit 4b4fa06432
1 file changed
+6 -1
+6 -1
View File
@@ -755,7 +755,12 @@ inline bool isBranchOrJump(u32 addr)
{
u32 op = memRead32(addr);
const OPCODE& opcode = GetInstruction(op);
// Return false for eret & syscall as they are branch type in pcsx2 debugging tools,
// but shouldn't have delay slot in isBreakpointNeeded/isMemcheckNeeded.
if ((opcode.flags == (IS_BRANCH | BRANCHTYPE_SYSCALL)) || (opcode.flags == (IS_BRANCH | BRANCHTYPE_ERET)))
return false;
return (opcode.flags & IS_BRANCH) != 0;
}