target: sort the targets by alphabetic order
Add comments to require the list of targets to be kept sorted. Change-Id: Ie3d7e3f5d55a9f9214dc179c5c986b6682f59412 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8951 Tested-by: jenkins
This commit is contained in:
+31
-30
@@ -71,44 +71,45 @@ static int target_gdb_fileio_end_default(struct target *target, int retcode,
|
|||||||
int fileio_errno, bool ctrl_c);
|
int fileio_errno, bool ctrl_c);
|
||||||
|
|
||||||
static struct target_type *target_types[] = {
|
static struct target_type *target_types[] = {
|
||||||
&arm7tdmi_target,
|
// Keep in alphabetic order this list of targets
|
||||||
&arm9tdmi_target,
|
&aarch64_target,
|
||||||
&arm920t_target,
|
&arcv2_target,
|
||||||
&arm720t_target,
|
|
||||||
&arm966e_target,
|
|
||||||
&arm946e_target,
|
|
||||||
&arm926ejs_target,
|
|
||||||
&fa526_target,
|
|
||||||
&feroceon_target,
|
|
||||||
&dragonite_target,
|
|
||||||
&xscale_target,
|
|
||||||
&xtensa_chip_target,
|
|
||||||
&cortexm_target,
|
|
||||||
&cortexa_target,
|
|
||||||
&cortexr4_target,
|
|
||||||
&arm11_target,
|
&arm11_target,
|
||||||
&ls1_sap_target,
|
&arm720t_target,
|
||||||
&mips_m4k_target,
|
&arm7tdmi_target,
|
||||||
|
&arm920t_target,
|
||||||
|
&arm926ejs_target,
|
||||||
|
&arm946e_target,
|
||||||
|
&arm966e_target,
|
||||||
|
&arm9tdmi_target,
|
||||||
|
&armv8r_target,
|
||||||
|
&avr32_ap7k_target,
|
||||||
&avr_target,
|
&avr_target,
|
||||||
|
&cortexa_target,
|
||||||
|
&cortexm_target,
|
||||||
|
&cortexr4_target,
|
||||||
|
&dragonite_target,
|
||||||
&dsp563xx_target,
|
&dsp563xx_target,
|
||||||
&dsp5680xx_target,
|
&dsp5680xx_target,
|
||||||
&testee_target,
|
&esirisc_target,
|
||||||
&avr32_ap7k_target,
|
|
||||||
&hla_target,
|
|
||||||
&esp32_target,
|
|
||||||
&esp32s2_target,
|
&esp32s2_target,
|
||||||
&esp32s3_target,
|
&esp32s3_target,
|
||||||
&or1k_target,
|
&esp32_target,
|
||||||
&quark_x10xx_target,
|
&fa526_target,
|
||||||
&quark_d20xx_target,
|
&feroceon_target,
|
||||||
&stm8_target,
|
&hla_target,
|
||||||
&riscv_target,
|
&ls1_sap_target,
|
||||||
&mem_ap_target,
|
&mem_ap_target,
|
||||||
&esirisc_target,
|
&mips_m4k_target,
|
||||||
&arcv2_target,
|
|
||||||
&aarch64_target,
|
|
||||||
&armv8r_target,
|
|
||||||
&mips_mips64_target,
|
&mips_mips64_target,
|
||||||
|
&or1k_target,
|
||||||
|
&quark_d20xx_target,
|
||||||
|
&quark_x10xx_target,
|
||||||
|
&riscv_target,
|
||||||
|
&stm8_target,
|
||||||
|
&testee_target,
|
||||||
|
&xscale_target,
|
||||||
|
&xtensa_chip_target,
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -307,6 +307,7 @@ struct target_type {
|
|||||||
unsigned int (*data_bits)(struct target *target);
|
unsigned int (*data_bits)(struct target *target);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Keep in alphabetic order this list of targets
|
||||||
extern struct target_type aarch64_target;
|
extern struct target_type aarch64_target;
|
||||||
extern struct target_type arcv2_target;
|
extern struct target_type arcv2_target;
|
||||||
extern struct target_type arm11_target;
|
extern struct target_type arm11_target;
|
||||||
|
|||||||
Reference in New Issue
Block a user