aboutsummaryrefslogtreecommitdiff
path: root/src/target/xscale.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2019-06-24 17:15:33 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2020-03-12 10:05:42 +0000
commitfba438fde7355bcbe5fb4dc0ce712665d3d8a6da (patch)
treeb03a74645a8d29d9757119b196d94cae31e42c76 /src/target/xscale.c
parentf447c31b30f805725b7a09d51d786c88de4b7a4f (diff)
downloadriscv-openocd-fba438fde7355bcbe5fb4dc0ce712665d3d8a6da.zip
riscv-openocd-fba438fde7355bcbe5fb4dc0ce712665d3d8a6da.tar.gz
riscv-openocd-fba438fde7355bcbe5fb4dc0ce712665d3d8a6da.tar.bz2
arm: Use different enum for core_type and core_mode
The fields core_type and core_mode use the same enum arm_mode but encode different information, making the code less immediate to read. Use a different enum arm_core_type for the field core_type. The code behavior is not changed. Change-Id: I60f2095ea6801dfe22f6da81ec295ca71ef90466 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5258 Tested-by: jenkins
Diffstat (limited to 'src/target/xscale.c')
-rw-r--r--src/target/xscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c
index e579965..f879a9c 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -2981,7 +2981,7 @@ static int xscale_init_arch_info(struct target *target,
/* prepare ARMv4/5 specific information */
arm->arch_info = xscale;
- arm->core_type = ARM_MODE_ANY;
+ arm->core_type = ARM_CORE_TYPE_STD;
arm->read_core_reg = xscale_read_core_reg;
arm->write_core_reg = xscale_write_core_reg;
arm->full_context = xscale_full_context;