summaryrefslogtreecommitdiff
path: root/src/target/arm920t.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/arm920t.h')
-rw-r--r--src/target/arm920t.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/target/arm920t.h b/src/target/arm920t.h
index ed851a93..eb66eaa8 100644
--- a/src/target/arm920t.h
+++ b/src/target/arm920t.h
@@ -38,6 +38,13 @@ typedef struct arm920t_common_s
int preserve_cache;
} arm920t_common_t;
+static inline struct arm920t_common_s *
+target_to_arm920(struct target_s *target)
+{
+ return container_of(target->arch_info, struct arm920t_common_s,
+ arm9tdmi_common.arm7_9_common.armv4_5_common);
+}
+
typedef struct arm920t_cache_line_s
{
uint32_t cam;