Debug interrupts aren't instruction traps

The EXC_DEBUG type is akin to the MPC74xx "Instruction Breakpoint" trap.
Don't treat it as a trap instruction.
This commit is contained in:
Justin Hibbits 2018-03-23 00:40:08 +00:00
parent 06b479a6a7
commit 9ae2eed9f8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331401

View File

@ -189,7 +189,7 @@ frame_is_trap_inst(struct trapframe *frame)
#ifdef AIM
return (frame->exc == EXC_PGM && frame->srr1 & EXC_PGM_TRAP);
#else
return (frame->exc == EXC_DEBUG || frame->cpu.booke.esr & ESR_PTR);
return ((frame->cpu.booke.esr & ESR_PTR) != 0);
#endif
}
@ -895,6 +895,7 @@ db_trap_glue(struct trapframe *frame)
&& (frame->exc == EXC_TRC || frame->exc == EXC_RUNMODETRC
|| frame_is_trap_inst(frame)
|| frame->exc == EXC_BPT
|| frame->exc == EXC_DEBUG
|| frame->exc == EXC_DSI)) {
int type = frame->exc;