aboutsummaryrefslogtreecommitdiff
path: root/src/target/cortex_a.c
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2013-05-23 15:20:45 +0400
committerSpencer Oliver <spen@spen-soft.co.uk>2013-05-28 08:48:45 +0000
commit2aada5b8d9869ebc69984223710253ba905d61cd (patch)
tree98072f004aa04b76e527b2d97ee4fe5fa649b3d5 /src/target/cortex_a.c
parent70a2ffac8e2db994e691065259422fa6886ee67f (diff)
downloadriscv-openocd-2aada5b8d9869ebc69984223710253ba905d61cd.zip
riscv-openocd-2aada5b8d9869ebc69984223710253ba905d61cd.tar.gz
riscv-openocd-2aada5b8d9869ebc69984223710253ba905d61cd.tar.bz2
targets: fix target_type name for Cortex-A targets
Commit d9ba56c295f057e716519a798bf9cdb4898c24f4 did a bunch of renaming of cortex_a8 to cortex_a, including the names in config files. However that introduced a regression as the name in target_type struct remained unchanged. This adds the last missing bit: actual renaming of the target name as understood by OpenOCD. Also change the (hopefully) last instance of using it in the supplied config files, namely from imx6.cfg. Change-Id: Ib9289fc6d946630133ec6e36c20015ccb50acf61 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/1420 Tested-by: jenkins Reviewed-by: Chris Johns <chrisj@rtems.org> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/cortex_a.c')
-rw-r--r--src/target/cortex_a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/cortex_a.c b/src/target/cortex_a.c
index 2b5510f..7788ada 100644
--- a/src/target/cortex_a.c
+++ b/src/target/cortex_a.c
@@ -2756,7 +2756,8 @@ static const struct command_registration cortex_a8_command_handlers[] = {
};
struct target_type cortexa8_target = {
- .name = "cortex_a8",
+ .name = "cortex_a",
+ .deprecated_name = "cortex_a8",
.poll = cortex_a8_poll,
.arch_state = armv7a_arch_state,