diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2019-06-24 17:15:33 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-03-12 10:05:42 +0000 |
commit | fba438fde7355bcbe5fb4dc0ce712665d3d8a6da (patch) | |
tree | b03a74645a8d29d9757119b196d94cae31e42c76 /src/target/arm11.c | |
parent | f447c31b30f805725b7a09d51d786c88de4b7a4f (diff) |
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/arm11.c')
-rw-r--r-- | src/target/arm11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c index 159c30a8..51f2a337 100644 --- a/src/target/arm11.c +++ b/src/target/arm11.c @@ -1109,7 +1109,7 @@ static int arm11_target_create(struct target *target, Jim_Interp *interp) if (!arm11) return ERROR_FAIL; - arm11->arm.core_type = ARM_MODE_ANY; + arm11->arm.core_type = ARM_CORE_TYPE_STD; arm_init_arch_info(target, &arm11->arm); arm11->jtag_info.tap = target->tap; @@ -1180,7 +1180,7 @@ static int arm11_examine(struct target *target) type = "ARM1156"; break; case 0x7B76: - arm11->arm.core_type = ARM_MODE_MON; + arm11->arm.core_type = ARM_CORE_TYPE_SEC_EXT; /* NOTE: could default arm11->hardware_step to true */ type = "ARM1176"; break; |