mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 02:30:32 +01:00
Debugger: Remove delay slot for ERET and SYSCALL opcodes
This commit is contained in:
1 parent
5a77ed14bf
commit
4b4fa06432
1 file changed
+6
-1
+6
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user