diff options
Diffstat (limited to 'src/target/arm966e.h')
-rw-r--r-- | src/target/arm966e.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/target/arm966e.h b/src/target/arm966e.h index 21dee1e5..710f2071 100644 --- a/src/target/arm966e.h +++ b/src/target/arm966e.h @@ -34,6 +34,13 @@ typedef struct arm966e_common_s uint32_t cp15_control_reg; } arm966e_common_t; +static inline struct arm966e_common_s * +target_to_arm966(struct target_s *target) +{ + return container_of(target->arch_info, struct arm966e_common_s, + arm9tdmi_common.arm7_9_common.armv4_5_common); +} + extern int arm966e_init_arch_info(target_t *target, arm966e_common_t *arm966e, jtag_tap_t *tap); extern int arm966e_register_commands(struct command_context_s *cmd_ctx); extern int arm966e_write_cp15(target_t *target, int reg_addr, uint32_t value); |