summaryrefslogtreecommitdiff
path: root/src/target/arm11.c
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-12-02 22:57:07 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-02 23:08:42 -0800
commitc2af99d4717837761b6df750e1fe75797c910b23 (patch)
treedcf33581014c399865334358a1e1f424a5d0d37a /src/target/arm11.c
parentb123fd3cd9a11b2dfb79025fb137696135f5f898 (diff)
downloadopenocd+libswd-c2af99d4717837761b6df750e1fe75797c910b23.tar.gz
openocd+libswd-c2af99d4717837761b6df750e1fe75797c910b23.tar.bz2
openocd+libswd-c2af99d4717837761b6df750e1fe75797c910b23.tar.xz
openocd+libswd-c2af99d4717837761b6df750e1fe75797c910b23.zip
ARM DPM: tweak initialization
Move the initial breakpoint/watchpoint disable calls to arm_dpm_initialize(), and start using that routine. This split helps with arm11 support.
Diffstat (limited to 'src/target/arm11.c')
-rw-r--r--src/target/arm11.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c
index 605e741b..50534143 100644
--- a/src/target/arm11.c
+++ b/src/target/arm11.c
@@ -1330,10 +1330,8 @@ static int arm11_examine(struct target *target)
/* Build register cache "late", after target_init(), since we
* want to know if this core supports Secure Monitor mode.
*/
- if (!target_was_examined(target)) {
- arm11_dpm_init(arm11, didr);
- retval = arm_dpm_setup(&arm11->dpm);
- }
+ if (!target_was_examined(target))
+ retval = arm11_dpm_init(arm11, didr);
/* ETM on ARM11 still uses original scanchain 6 access mode */
if (arm11->arm.etm && !target_was_examined(target)) {