From af949b2531d2a8863d077025db40cbb170d13a63 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Fri, 13 Nov 2009 09:43:03 -0800 Subject: armv4_5_common_t -> struct arm Remove misleading typedef and just use struct arm. --- src/target/armv4_5.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/target/armv4_5.h') diff --git a/src/target/armv4_5.h b/src/target/armv4_5.h index 3c65069e..9823f4e6 100644 --- a/src/target/armv4_5.h +++ b/src/target/armv4_5.h @@ -84,7 +84,7 @@ enum * Cortex-M series cores do not support as many core states or shadowed * registers as traditional ARM cores, and only support Thumb2 instructions. */ -typedef struct arm +struct arm { int common_magic; struct reg_cache *core_cache; @@ -104,7 +104,7 @@ typedef struct arm int (*write_core_reg)(struct target_s *target, int num, enum armv4_5_mode mode, uint32_t value); void *arch_info; -} armv4_5_common_t; +}; #define target_to_armv4_5 target_to_arm @@ -132,11 +132,11 @@ struct armv4_5_core_reg int num; enum armv4_5_mode mode; target_t *target; - armv4_5_common_t *armv4_5_common; + struct arm *armv4_5_common; }; struct reg_cache* armv4_5_build_reg_cache(target_t *target, - armv4_5_common_t *armv4_5_common); + struct arm *armv4_5_common); /* map psr mode bits to linear number */ static __inline int armv4_5_mode_to_number(enum armv4_5_mode mode) @@ -180,7 +180,7 @@ int armv4_5_get_gdb_reg_list(target_t *target, reg_t **reg_list[], int *reg_list_size); int armv4_5_register_commands(struct command_context_s *cmd_ctx); -int armv4_5_init_arch_info(target_t *target, armv4_5_common_t *armv4_5); +int armv4_5_init_arch_info(target_t *target, struct arm *armv4_5); int armv4_5_run_algorithm(struct target_s *target, int num_mem_params, struct mem_param *mem_params, -- cgit v1.2.3