diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-12-02 22:57:07 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-12-02 23:08:42 -0800 |
commit | c2af99d4717837761b6df750e1fe75797c910b23 (patch) | |
tree | dcf33581014c399865334358a1e1f424a5d0d37a /src/target/arm11.c | |
parent | b123fd3cd9a11b2dfb79025fb137696135f5f898 (diff) | |
download | riscv-openocd-c2af99d4717837761b6df750e1fe75797c910b23.zip riscv-openocd-c2af99d4717837761b6df750e1fe75797c910b23.tar.gz riscv-openocd-c2af99d4717837761b6df750e1fe75797c910b23.tar.bz2 |
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.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c index 605e741..5053414 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)) { |