aarch64: handle exceptions taken in debug state
When an armv8-a PE causes an exception while halted, e.g. by performing a prohibited memory or register access, its state is affected in the same way as if it was running. That means, a number of registers is overwritten (notably DLR and DSPSR, but also others) and also potentially the exception level and therefore also the PE state can change. This state must be restored before resuming normal operation. This is done by marking the relevant cached registers "dirty" so that they are written back before resume. Change-Id: I9b6967a62d7cb23a477a9f7839f8d2b7087eed09 Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
This commit is contained in:
@@ -111,6 +111,7 @@ void armv8_dpm_report_wfar(struct arm_dpm *, uint64_t wfar);
|
||||
#define PRSR_SDR (1 << 11)
|
||||
|
||||
void armv8_dpm_report_dscr(struct arm_dpm *dpm, uint32_t dcsr);
|
||||
void armv8_dpm_handle_exception(struct arm_dpm *dpm);
|
||||
enum arm_state armv8_dpm_get_core_state(struct arm_dpm *dpm);
|
||||
|
||||
#endif /* OPENOCD_TARGET_ARM_DPM_H */
|
||||
|
||||
Reference in New Issue
Block a user