aarch64: discard async aborts on entering debug state
recommended for Corte-A8 cores, not sure if necessary for ARMv8 based cores as well. Change-Id: Ibcb36170c5fac6a6b132de17f734c70a56919f9b Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
This commit is contained in:
@@ -663,11 +663,16 @@ static int aarch64_debug_entry(struct target *target)
|
||||
/* make sure to clear all sticky errors */
|
||||
retval = mem_ap_write_atomic_u32(armv8->debug_ap,
|
||||
armv8->debug_base + CPUV8_DBG_DRCR, DRCR_CSE);
|
||||
|
||||
/* discard async exceptions */
|
||||
if (retval == ERROR_OK)
|
||||
retval = dpm->instr_cpsr_sync(dpm);
|
||||
|
||||
if (retval != ERROR_OK)
|
||||
return retval;
|
||||
|
||||
/* Examine debug reason */
|
||||
armv8_dpm_report_dscr(&armv8->dpm, aarch64->cpudbg_dscr);
|
||||
armv8_dpm_report_dscr(dpm, aarch64->cpudbg_dscr);
|
||||
|
||||
/* save address of instruction that triggered the watchpoint? */
|
||||
if (target->debug_reason == DBG_REASON_WATCHPOINT) {
|
||||
|
||||
Reference in New Issue
Block a user