diff options
Diffstat (limited to 'src/target/arm926ejs.h')
-rw-r--r-- | src/target/arm926ejs.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/target/arm926ejs.h b/src/target/arm926ejs.h index f0df091..27320e6 100644 --- a/src/target/arm926ejs.h +++ b/src/target/arm926ejs.h @@ -25,7 +25,7 @@ #define ARM926EJS_COMMON_MAGIC 0xa926a926 -typedef struct arm926ejs_common_s +struct arm926ejs_common { arm9tdmi_common_t arm9tdmi_common; uint32_t common_magic; @@ -36,18 +36,18 @@ typedef struct arm926ejs_common_s uint32_t d_fsr; uint32_t i_fsr; uint32_t d_far; -} arm926ejs_common_t; +}; -static inline struct arm926ejs_common_s * +static inline struct arm926ejs_common * target_to_arm926(struct target_s *target) { - return container_of(target->arch_info, struct arm926ejs_common_s, + return container_of(target->arch_info, struct arm926ejs_common, arm9tdmi_common.arm7_9_common.armv4_5_common); } int arm926ejs_init_arch_info(target_t *target, - arm926ejs_common_t *arm926ejs, struct jtag_tap *tap); + struct arm926ejs_common *arm926ejs, struct jtag_tap *tap); int arm926ejs_register_commands(struct command_context_s *cmd_ctx); int arm926ejs_arch_state(struct target_s *target); int arm926ejs_write_memory(struct target_s *target, |