aboutsummaryrefslogtreecommitdiff
path: root/src/target/armv8_dpm.h
diff options
context:
space:
mode:
authorMatthias Welwarsky <matthias.welwarsky@sysgo.com>2018-03-12 16:56:05 +0100
committerMatthias Welwarsky <matthias@welwarsky.de>2018-03-16 08:58:06 +0000
commitffd6b78a2c47d1c15629dc72c71caea30ef8161a (patch)
treec2a7f4efa9c41216c1df83878eea904d80ca6e3a /src/target/armv8_dpm.h
parent935f0c5cc28a3a2cc627ff25b30d65d8d82ad8c4 (diff)
downloadriscv-openocd-ffd6b78a2c47d1c15629dc72c71caea30ef8161a.zip
riscv-openocd-ffd6b78a2c47d1c15629dc72c71caea30ef8161a.tar.gz
riscv-openocd-ffd6b78a2c47d1c15629dc72c71caea30ef8161a.tar.bz2
aarch64: fix debug entry from EL0
If we enter debug state from EL0, some registers are not accessible. Temporarily move to EL1H and back to gain access. Also, fix armv8_dpm_modeswitch() to not immediately restore the previous state on elevating the privilege level. Change-Id: Ic2a92109230ff4eb6834c00ef544397a5b7ad56a Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com> Reviewed-on: http://openocd.zylin.com/4461 Tested-by: jenkins Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Diffstat (limited to 'src/target/armv8_dpm.h')
-rw-r--r--src/target/armv8_dpm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/armv8_dpm.h b/src/target/armv8_dpm.h
index c039359..f404403 100644
--- a/src/target/armv8_dpm.h
+++ b/src/target/armv8_dpm.h
@@ -116,7 +116,7 @@ void armv8_dpm_report_wfar(struct arm_dpm *, uint64_t wfar);
#define PRCR_COREPURQ (1 << 3)
void armv8_dpm_report_dscr(struct arm_dpm *dpm, uint32_t dcsr);
-void armv8_dpm_handle_exception(struct arm_dpm *dpm);
+void armv8_dpm_handle_exception(struct arm_dpm *dpm, bool do_restore);
enum arm_state armv8_dpm_get_core_state(struct arm_dpm *dpm);
#endif /* OPENOCD_TARGET_ARM_DPM_H */