aboutsummaryrefslogtreecommitdiff
path: root/src/target/armv8_dpm.c
diff options
context:
space:
mode:
authorMatthias Welwarsky <matthias.welwarsky@sysgo.com>2018-04-05 13:42:21 +0200
committerMatthias Welwarsky <matthias@welwarsky.de>2019-03-04 11:53:00 +0000
commitdb429c34d047ac40dadf0087f3b3434551c855d4 (patch)
tree75b8c06d64c3f9decec08aa9583195c8fb04e100 /src/target/armv8_dpm.c
parent21687eb983a4d5e30cd9c4050b9ebce2f3b280c7 (diff)
downloadriscv-openocd-db429c34d047ac40dadf0087f3b3434551c855d4.zip
riscv-openocd-db429c34d047ac40dadf0087f3b3434551c855d4.tar.gz
riscv-openocd-db429c34d047ac40dadf0087f3b3434551c855d4.tar.bz2
armv8: allow halt on exception
add command 'catch_exc' to halt a core on entering any of Secure EL1 or EL3 or Non-Secure EL1 or EL2. Change-Id: I0c68e247af68dd96616855a9bc1063c277d222e5 Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com> Reviewed-on: http://openocd.zylin.com/4479 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Diffstat (limited to 'src/target/armv8_dpm.c')
-rw-r--r--src/target/armv8_dpm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/target/armv8_dpm.c b/src/target/armv8_dpm.c
index a5d7d11..081eed2 100644
--- a/src/target/armv8_dpm.c
+++ b/src/target/armv8_dpm.c
@@ -1381,13 +1381,15 @@ void armv8_dpm_report_dscr(struct arm_dpm *dpm, uint32_t dscr)
case DSCRV8_ENTRY_BKPT: /* SW BKPT (?) */
case DSCRV8_ENTRY_RESET_CATCH: /* Reset catch */
case DSCRV8_ENTRY_OS_UNLOCK: /*OS unlock catch*/
- case DSCRV8_ENTRY_EXCEPTION_CATCH: /*exception catch*/
case DSCRV8_ENTRY_SW_ACCESS_DBG: /*SW access dbg register*/
target->debug_reason = DBG_REASON_BREAKPOINT;
break;
case DSCRV8_ENTRY_WATCHPOINT: /* asynch watchpoint */
target->debug_reason = DBG_REASON_WATCHPOINT;
break;
+ case DSCRV8_ENTRY_EXCEPTION_CATCH: /*exception catch*/
+ target->debug_reason = DBG_REASON_EXC_CATCH;
+ break;
default:
target->debug_reason = DBG_REASON_UNDEFINED;
break;