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:
@@ -360,9 +360,14 @@ static int dpmv8_instr_write_data_r0_64(struct arm_dpm *dpm,
|
||||
|
||||
static int dpmv8_instr_cpsr_sync(struct arm_dpm *dpm)
|
||||
{
|
||||
int retval;
|
||||
struct armv8_common *armv8 = dpm->arm->arch_info;
|
||||
|
||||
/* "Prefetch flush" after modifying execution status in CPSR */
|
||||
return dpmv8_exec_opcode(dpm, armv8_opcode(armv8, ARMV8_OPC_DSB_SY), NULL);
|
||||
retval = dpmv8_exec_opcode(dpm, armv8_opcode(armv8, ARMV8_OPC_DSB_SY), &dpm->dscr);
|
||||
if (retval == ERROR_OK)
|
||||
dpmv8_exec_opcode(dpm, armv8_opcode(armv8, ARMV8_OPC_ISB_SY), &dpm->dscr);
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int dpmv8_instr_read_data_dcc(struct arm_dpm *dpm,
|
||||
|
||||
Reference in New Issue
Block a user