diff options
Diffstat (limited to 'src/target/cortex_a8.h')
-rw-r--r-- | src/target/cortex_a8.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/target/cortex_a8.h b/src/target/cortex_a8.h index 3695696..b98a7de 100644 --- a/src/target/cortex_a8.h +++ b/src/target/cortex_a8.h @@ -137,6 +137,13 @@ typedef struct cortex_a8_common_s void *arch_info; } cortex_a8_common_t; +static inline struct cortex_a8_common_s * +target_to_cortex_a8(struct target_s *target) +{ + return container_of(target->arch_info, struct cortex_a8_common_s, + armv7a_common.armv4_5_common); +} + extern int cortex_a8_init_arch_info(target_t *target, cortex_a8_common_t *cortex_a8, jtag_tap_t *tap); int cortex_a8_read_memory(struct target_s *target, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer); int cortex_a8_write_memory(struct target_s *target, uint32_t address, uint32_t size, uint32_t count, uint8_t *buffer); |