aboutsummaryrefslogtreecommitdiff
path: root/src/target/cortex_m.c
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2013-02-01 15:34:51 +0000
committerFreddie Chopin <freddie.chopin@gmail.com>2013-04-28 08:55:31 +0000
commitb7d2cdc0d4fc319169c60362708a67e2ff626525 (patch)
tree1ad1b79b7ff26c47023d30fee6fc7e38266f1ecc /src/target/cortex_m.c
parent564a5eb5375aa8117ee4fe48899f07490da8ae8a (diff)
downloadriscv-openocd-b7d2cdc0d4fc319169c60362708a67e2ff626525.zip
riscv-openocd-b7d2cdc0d4fc319169c60362708a67e2ff626525.tar.gz
riscv-openocd-b7d2cdc0d4fc319169c60362708a67e2ff626525.tar.bz2
target: rename cortex_m3 to cortex_m
Rename cortex_m3 target to use a more correct cortex_m name. This also adds a deprecated_name var so that older scripts issue a warning to update the target name. cfg files have also been updated to the new target name. Change-Id: Ia8429f38e88da677249c5caa560c50f8ce56ea10 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1129 Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src/target/cortex_m.c')
-rw-r--r--src/target/cortex_m.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c
index 7094b07..6fba925 100644
--- a/src/target/cortex_m.c
+++ b/src/target/cortex_m.c
@@ -2256,9 +2256,9 @@ static const struct command_registration cortex_m3_command_handlers[] = {
.chain = armv7m_command_handlers,
},
{
- .name = "cortex_m3",
+ .name = "cortex_m",
.mode = COMMAND_EXEC,
- .help = "Cortex-M3 command group",
+ .help = "Cortex-M command group",
.usage = "",
.chain = cortex_m3_exec_command_handlers,
},
@@ -2266,7 +2266,8 @@ static const struct command_registration cortex_m3_command_handlers[] = {
};
struct target_type cortexm3_target = {
- .name = "cortex_m3",
+ .name = "cortex_m",
+ .deprecated_name = "cortex_m3",
.poll = cortex_m3_poll,
.arch_state = armv7m_arch_state,