aboutsummaryrefslogtreecommitdiff
path: root/src/target/arm11.h
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-13 16:22:36 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-13 16:22:36 -0800
commita7f5cdf999cd3fb8d3a681bcb6d8f8880faf8a11 (patch)
tree5719f202e9a4c0ca4ca2996bb452d238537667c5 /src/target/arm11.h
parent04b514707f221ba00ae789e69f6f8047af96125d (diff)
downloadriscv-openocd-a7f5cdf999cd3fb8d3a681bcb6d8f8880faf8a11.zip
riscv-openocd-a7f5cdf999cd3fb8d3a681bcb6d8f8880faf8a11.tar.gz
riscv-openocd-a7f5cdf999cd3fb8d3a681bcb6d8f8880faf8a11.tar.bz2
ARM11: switch to new "arm" base type
This will enable reusing many common ARM utilities, in particular the ETM and ETB support. The ARM11 support can still be much simplified after this patch, though. Note: none of those common utilities kick in yet... Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/arm11.h')
-rw-r--r--src/target/arm11.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/target/arm11.h b/src/target/arm11.h
index f890253..6caad0e 100644
--- a/src/target/arm11.h
+++ b/src/target/arm11.h
@@ -23,9 +23,7 @@
#ifndef ARM11_H
#define ARM11_H
-#include "target.h"
-#include "register.h"
-#include "jtag.h"
+#include "armv4_5.h"
#define asizeof(x) (sizeof(x) / sizeof((x)[0]))
@@ -80,6 +78,7 @@ enum arm11_debug_version
struct arm11_common
{
+ struct arm arm;
struct target * target; /**< Reference back to the owner */
/** \name Processor type detection */
@@ -117,8 +116,15 @@ struct arm11_common
// GA
struct reg_cache *core_cache;
+
+ struct arm_jtag jtag_info;
};
+static inline struct arm11_common *target_to_arm11(struct target *target)
+{
+ return container_of(target->arch_info, struct arm11_common,
+ arm);
+}
/**
* ARM11 DBGTAP instructions