This is an automated email from Gerrit. Alamy Liu ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/3272
-- gerrit commit da7d7fc104dd82dd0ff79d3f3bda2e7a1ea0d085 Author: Alamy Liu <[email protected]> Date: Thu Aug 27 16:35:17 2015 -0700 aarch64: use ARMV8_REG_xxx instead of CPUDBG_xxx Change-Id: I3005ca58307b45ce042978dc09403c00f60710ba Signed-off-by: Alamy Liu <[email protected]> diff --git a/src/target/aarch64.c b/src/target/aarch64.c index 759e683..eb1c62c 100644 --- a/src/target/aarch64.c +++ b/src/target/aarch64.c @@ -374,7 +374,8 @@ static int aarch64_dpm_prepare(struct arm_dpm *dpm) /* Clear sticky error */ retval = mem_ap_sel_write_u32(swjdp, a8->armv8_common.debug_ap, - a8->armv8_common.debug_base + CPUDBG_DRCR, DRCR_CSE); + a8->armv8_common.debug_base + ARMV8_REG_EDRCR_OFST, + ARMV8_EDRCR_CSE); if (retval != ERROR_OK) return retval; diff --git a/src/target/arm_dpm.h b/src/target/arm_dpm.h index e7d08f9..26248e8 100644 --- a/src/target/arm_dpm.h +++ b/src/target/arm_dpm.h @@ -206,15 +206,25 @@ void arm_dpm_report_wfar(struct arm_dpm *, uint32_t wfar); #define DSCR_EXT_DCC_STALL_MODE (0x1 << 20) #define DSCR_EXT_DCC_FAST_MODE (0x2 << 20) /* bits 22, 23 are reserved */ - - - - /* DRCR (debug run control register) bits */ #define DRCR_HALT (1 << 0) #define DRCR_RESTART (1 << 1) #define DRCR_CLEAR_EXCEPTIONS (1 << 2) + +/* ------------------------------ ARMv8 ------------------------------ + * DDI0487A.f (ID032515) ARM Architecture Reference Manual + * ARMv8, for ARMv8-A architecture profile + */ + +/* Fields of the EDRCR register */ + +#define ARMV8_REG_EDRCR_OFST (0x090) +#define ARMV8_EDRCR_CSE (1 << 2) /* Clear Sticky Error */ +#define ARMV8_EDRCR_CSPA (1 << 3) /* Clear Sticky Pipeline Advance */ +#define ARMV8_EDRCR_CBRRQ (1 << 4) /* Allow imprecise entry to Debug state */ + + void arm_dpm_report_dscr(struct arm_dpm *dpm, uint32_t dcsr); #endif /* __ARM_DPM_H */ -- ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
