summaryrefslogtreecommitdiff
path: root/src/target/armv4_5.c
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-24 00:13:58 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-24 00:13:58 -0800
commite6dc927e972bb2d91131b0193b676c531377f318 (patch)
treef8e874a5b1ec5e199dccb44c7f9d0e8452174ea3 /src/target/armv4_5.c
parentad75af0b17af75d57b95298fb40784d33cc8f3e2 (diff)
downloadopenocd+libswd-e6dc927e972bb2d91131b0193b676c531377f318.tar.gz
openocd+libswd-e6dc927e972bb2d91131b0193b676c531377f318.tar.bz2
openocd+libswd-e6dc927e972bb2d91131b0193b676c531377f318.tar.xz
openocd+libswd-e6dc927e972bb2d91131b0193b676c531377f318.zip
ARM: new DPM interface
First version of interface for sharing code between ARMv6 and ARMv7a debug modules ... now the architecture includes debug support. (Not the same as for the trimmed-down v7m or v6m though!) This is a first version of an interface that will let the ARM11 and Cortex-A8 support share code, features, and bugfixes. Based on existing code from both of those cores. The ARM v7-AR architecture specification calls this commonality the "Debug Programmer's Model (DPM)", which seemed to be an appropriate acronym -- a TLA even! -- for use in our code. Made it so. :) The initial scope of this just supports register access, and is geared towards supporting top level "struct arm" mechanisms. Later, things like breakpoint and watchpoint support should be included. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/armv4_5.c')
-rw-r--r--src/target/armv4_5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/armv4_5.c b/src/target/armv4_5.c
index 461d2061..da5c75a2 100644
--- a/src/target/armv4_5.c
+++ b/src/target/armv4_5.c
@@ -1233,6 +1233,7 @@ static int arm_full_context(struct target *target)
int armv4_5_init_arch_info(struct target *target, struct arm *armv4_5)
{
target->arch_info = armv4_5;
+ armv4_5->target = target;
armv4_5->common_magic = ARMV4_5_COMMON_MAGIC;
arm_set_cpsr(armv4_5, ARMV4_5_MODE_USR);