mirror of https://github.com/PCSX2/pcsx2.git
Debugger: Remove delay slot for ERET and SYSCALL opcodes
This commit is contained in:
parent
5a77ed14bf
commit
4b4fa06432
|
@ -755,7 +755,12 @@ inline bool isBranchOrJump(u32 addr)
|
||||||
{
|
{
|
||||||
u32 op = memRead32(addr);
|
u32 op = memRead32(addr);
|
||||||
const OPCODE& opcode = GetInstruction(op);
|
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;
|
return (opcode.flags & IS_BRANCH) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue