forked from auracaster/openocd
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
This commit is contained in:
@@ -2848,7 +2848,7 @@ int arm7_9_init_arch_info(struct target *target, struct arm7_9_common *arm7_9)
|
||||
arm7_9->dcc_downloads = false;
|
||||
|
||||
arm->arch_info = arm7_9;
|
||||
arm->core_type = ARM_MODE_ANY;
|
||||
arm->core_type = ARM_CORE_TYPE_STD;
|
||||
arm->read_core_reg = arm7_9_read_core_reg;
|
||||
arm->write_core_reg = arm7_9_write_core_reg;
|
||||
arm->full_context = arm7_9_full_context;
|
||||
|
||||
Reference in New Issue
Block a user