summaryrefslogtreecommitdiff
path: root/src/target/arm11.c
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-12-04 18:57:31 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-04 18:57:31 -0800
commita0edb8a328ceea23186ab74c941454fb146c9a48 (patch)
tree93e1e4f78240e40ba2ae5627055dde51b5b737a5 /src/target/arm11.c
parentf4651c869fb0bbe00495a09470af0a934814c92a (diff)
downloadopenocd+libswd-a0edb8a328ceea23186ab74c941454fb146c9a48.tar.gz
openocd+libswd-a0edb8a328ceea23186ab74c941454fb146c9a48.tar.bz2
openocd+libswd-a0edb8a328ceea23186ab74c941454fb146c9a48.tar.xz
openocd+libswd-a0edb8a328ceea23186ab74c941454fb146c9a48.zip
ARM11: basic watchpoint support
Use the DPM watchpoint support; remove old incomplete stubs. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/arm11.c')
-rw-r--r--src/target/arm11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c
index b05ef302..943ab8ae 100644
--- a/src/target/arm11.c
+++ b/src/target/arm11.c
@@ -286,6 +286,8 @@ static int arm11_leave_debug_state(struct arm11_common *arm11, bool bpwp)
*/
retval = arm_dpm_write_dirty_registers(&arm11->dpm, bpwp);
+ retval = arm11_bpwp_flush(arm11);
+
register_cache_invalidate(arm11->arm.core_cache);
/* restore DSCR */
@@ -1212,7 +1214,6 @@ static int arm11_examine(struct target *target)
}
arm11->brp = ((didr >> 24) & 0x0F) + 1;
- arm11->wrp = ((didr >> 28) & 0x0F) + 1;
/** \todo TODO: reserve one brp slot if we allow breakpoints during step */
arm11->free_brps = arm11->brp;