From: openocd-gerrit <ope...@us...> - 2024-07-13 22:20:04
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via fbb16b05da3b87a5e305a73a5dcca9f1ccdd5885 (commit) from df7a31f5367d61e4b61b990a0e265a786ba90fd4 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit fbb16b05da3b87a5e305a73a5dcca9f1ccdd5885 Author: Antonio Borneo <bor...@gm...> Date: Tue Jun 4 11:11:25 2024 +0200 target: cortex_m: add detection for Cortex-M52 Add Cortex-M52 to the list of known Cortex-M implementations to allow detection of the core. Values checked against the ARM document "Arm China Cortex®-M52 Processor Technical Reference Manual" 102776_0002_06_en. Reported-by: Joseph Yiu <Jos...@ar...> Change-Id: Id0bde8a0476f76799b7274835db9690f975e2dd6 Signed-off-by: Antonio Borneo <bor...@gm...> Reviewed-on: https://review.openocd.org/c/openocd/+/8317 Tested-by: jenkins diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index 9b00a2796..cf4e8dfb7 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -99,6 +99,12 @@ static const struct cortex_m_part_info cortex_m_parts[] = { .arch = ARM_ARCH_V8M, .flags = CORTEX_M_F_HAS_FPV5, }, + { + .impl_part = CORTEX_M52_PARTNO, + .name = "Cortex-M52", + .arch = ARM_ARCH_V8M, + .flags = CORTEX_M_F_HAS_FPV5, + }, { .impl_part = CORTEX_M55_PARTNO, .name = "Cortex-M55", diff --git a/src/target/cortex_m.h b/src/target/cortex_m.h index 847bb9518..0c2995f3a 100644 --- a/src/target/cortex_m.h +++ b/src/target/cortex_m.h @@ -55,6 +55,7 @@ enum cortex_m_impl_part { CORTEX_M23_PARTNO = ARM_MAKE_CPUID(ARM_IMPLEMENTOR_ARM, 0xD20), CORTEX_M33_PARTNO = ARM_MAKE_CPUID(ARM_IMPLEMENTOR_ARM, 0xD21), CORTEX_M35P_PARTNO = ARM_MAKE_CPUID(ARM_IMPLEMENTOR_ARM, 0xD31), + CORTEX_M52_PARTNO = ARM_MAKE_CPUID(ARM_IMPLEMENTOR_ARM_CHINA, 0xD24), CORTEX_M55_PARTNO = ARM_MAKE_CPUID(ARM_IMPLEMENTOR_ARM, 0xD22), CORTEX_M85_PARTNO = ARM_MAKE_CPUID(ARM_IMPLEMENTOR_ARM, 0xD23), INFINEON_SLX2_PARTNO = ARM_MAKE_CPUID(ARM_IMPLEMENTOR_INFINEON, 0xDB0), ----------------------------------------------------------------------- Summary of changes: src/target/cortex_m.c | 6 ++++++ src/target/cortex_m.h | 1 + 2 files changed, 7 insertions(+) hooks/post-receive -- Main OpenOCD repository |