diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 08:40:06 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:09 -0800 |
commit | 8e77975b92a75d392727339eccd6cc7898628ebb (patch) | |
tree | 3f90a6452868de69a28d393afd062dc63aff22a5 /src | |
parent | 8012b3963fc49c7edf87f31a93bc0039095f5b59 (diff) | |
download | riscv-openocd-8e77975b92a75d392727339eccd6cc7898628ebb.zip riscv-openocd-8e77975b92a75d392727339eccd6cc7898628ebb.tar.gz riscv-openocd-8e77975b92a75d392727339eccd6cc7898628ebb.tar.bz2 |
arm7tdmi_common_t -> struct arm7tdmi_common
Remove misleading typedef and redundant suffix from struct arm7tdmi_common.
Diffstat (limited to 'src')
-rw-r--r-- | src/target/arm720t.c | 2 | ||||
-rw-r--r-- | src/target/arm720t.h | 2 | ||||
-rw-r--r-- | src/target/arm7tdmi.c | 6 | ||||
-rw-r--r-- | src/target/arm7tdmi.h | 6 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/target/arm720t.c b/src/target/arm720t.c index d9d31da..a6641d0 100644 --- a/src/target/arm720t.c +++ b/src/target/arm720t.c @@ -379,7 +379,7 @@ static int arm720t_init_target(struct command_context_s *cmd_ctx, struct target_ static int arm720t_init_arch_info(target_t *target, struct arm720t_common *arm720t, struct jtag_tap *tap) { - arm7tdmi_common_t *arm7tdmi = &arm720t->arm7tdmi_common; + struct arm7tdmi_common *arm7tdmi = &arm720t->arm7tdmi_common; struct arm7_9_common *arm7_9 = &arm7tdmi->arm7_9_common; arm7tdmi_init_arch_info(target, arm7tdmi, tap); diff --git a/src/target/arm720t.h b/src/target/arm720t.h index 25c682a..c5e2809 100644 --- a/src/target/arm720t.h +++ b/src/target/arm720t.h @@ -27,7 +27,7 @@ struct arm720t_common { - arm7tdmi_common_t arm7tdmi_common; + struct arm7tdmi_common arm7tdmi_common; uint32_t common_magic; armv4_5_mmu_common_t armv4_5_mmu; uint32_t cp15_control_reg; diff --git a/src/target/arm7tdmi.c b/src/target/arm7tdmi.c index 6644726..2614d9e 100644 --- a/src/target/arm7tdmi.c +++ b/src/target/arm7tdmi.c @@ -691,7 +691,7 @@ int arm7tdmi_init_target(struct command_context_s *cmd_ctx, struct target_s *tar return ERROR_OK; } -int arm7tdmi_init_arch_info(target_t *target, arm7tdmi_common_t *arm7tdmi, struct jtag_tap *tap) +int arm7tdmi_init_arch_info(target_t *target, struct arm7tdmi_common *arm7tdmi, struct jtag_tap *tap) { struct arm7_9_common *arm7_9 = &arm7tdmi->arm7_9_common; @@ -743,9 +743,9 @@ int arm7tdmi_init_arch_info(target_t *target, arm7tdmi_common_t *arm7tdmi, struc static int arm7tdmi_target_create(struct target_s *target, Jim_Interp *interp) { - arm7tdmi_common_t *arm7tdmi; + struct arm7tdmi_common *arm7tdmi; - arm7tdmi = calloc(1,sizeof(arm7tdmi_common_t)); + arm7tdmi = calloc(1,sizeof(struct arm7tdmi_common)); arm7tdmi_init_arch_info(target, arm7tdmi, target->tap); arm7tdmi->arm7_9_common.armv4_5_common.is_armv4 = true; diff --git a/src/target/arm7tdmi.h b/src/target/arm7tdmi.h index b699697..4faec18 100644 --- a/src/target/arm7tdmi.h +++ b/src/target/arm7tdmi.h @@ -28,12 +28,12 @@ /* FIXME we don't really need a separate arm7tdmi struct any more... * remove it, the arm7/arm9 common struct suffices. */ -typedef struct arm7tdmi_common_s +struct arm7tdmi_common { struct arm7_9_common arm7_9_common; -} arm7tdmi_common_t; +}; -int arm7tdmi_init_arch_info(target_t *target, arm7tdmi_common_t *arm7tdmi, struct jtag_tap *tap); +int arm7tdmi_init_arch_info(target_t *target, struct arm7tdmi_common *arm7tdmi, struct jtag_tap *tap); int arm7tdmi_init_target(struct command_context_s *cmd_ctx, struct target_s *target); int arm7tdmi_examine(struct target_s *target); |