summaryrefslogtreecommitdiff
path: root/src/target/xscale.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/xscale.h')
-rw-r--r--src/target/xscale.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/target/xscale.h b/src/target/xscale.h
index 4b34cf88..a1f3d463 100644
--- a/src/target/xscale.h
+++ b/src/target/xscale.h
@@ -134,6 +134,13 @@ typedef struct xscale_common_s
int fast_memory_access;
} xscale_common_t;
+static inline struct xscale_common_s *
+target_to_xscale(struct target_s *target)
+{
+ return container_of(target->arch_info, struct xscale_common_s,
+ armv4_5_common);
+}
+
typedef struct xscale_reg_s
{
int dbg_handler_number;