diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2020-11-13 23:36:24 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-03-10 21:34:04 +0000 |
commit | dc7b32ea4a00a425a71b3309f3fceb07b8467592 (patch) | |
tree | af0e26bbceb210b596ecaecee09120daf856ad1b /src/target/cortex_m.c | |
parent | c945d6e6160598894319860a92b602a192c2c268 (diff) | |
download | riscv-openocd-dc7b32ea4a00a425a71b3309f3fceb07b8467592.zip riscv-openocd-dc7b32ea4a00a425a71b3309f3fceb07b8467592.tar.gz riscv-openocd-dc7b32ea4a00a425a71b3309f3fceb07b8467592.tar.bz2 |
armv7m_trace: get rid of the old tpiu code
Remove all the old tpiu code and replace it with a wrapper that
uses the new commands, prints-out the new commands and informs
about the deprecation.
All the code that handles the deprecated tpiu commands is enclosed
between the comments
/* START_DEPRECATED_TPIU */
and
/* END_DEPRECATED_TPIU */
so will be easy to remove it in the future.
Change-Id: I70b0486770128203b923346382d9a90b8ec08439
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6030
Tested-by: jenkins
Reviewed-by: Adrian M Negreanu <adrian.negreanu@nxp.com>
Diffstat (limited to 'src/target/cortex_m.c')
-rw-r--r-- | src/target/cortex_m.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index 4580c10..b998b7a 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -1648,8 +1648,6 @@ void cortex_m_deinit_target(struct target *target) { struct cortex_m_common *cortex_m = target_to_cm(target); - armv7m_trace_tpiu_exit(target); - free(cortex_m->fp_comparator_list); cortex_m_dwt_free(target); @@ -2082,9 +2080,6 @@ int cortex_m_examine(struct target *target) if (retval != ERROR_OK) return retval; - if (armv7m->trace_config.config_type != TRACE_CONFIG_TYPE_DISABLED) - armv7m_trace_tpiu_config(target); - if (armv7m->trace_config.itm_deferred_config) armv7m_trace_itm_config(target); @@ -2486,6 +2481,11 @@ static const struct command_registration cortex_m_command_handlers[] = { { .chain = armv7m_trace_command_handlers, }, + /* START_DEPRECATED_TPIU */ + { + .chain = arm_tpiu_deprecated_command_handlers, + }, + /* END_DEPRECATED_TPIU */ { .name = "cortex_m", .mode = COMMAND_EXEC, |