Remove misleading typedef and redundant suffix from struct arm7tdmi_common.
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);
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;
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;
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;
/* 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);