diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-26 19:23:35 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-26 19:23:35 +0000 |
commit | 01000e988aecac6b96747f9bd8ba80dc67296c0d (patch) | |
tree | d7899861c74a7ceed507ce143a301b1a13e62175 | |
parent | fc7cd1d85e6459ce8d7e453cfe05a254a1f92028 (diff) | |
download | openocd_libswd-01000e988aecac6b96747f9bd8ba80dc67296c0d.tar.gz openocd_libswd-01000e988aecac6b96747f9bd8ba80dc67296c0d.tar.bz2 openocd_libswd-01000e988aecac6b96747f9bd8ba80dc67296c0d.tar.xz openocd_libswd-01000e988aecac6b96747f9bd8ba80dc67296c0d.zip |
Matt Hsu <matt@0xlab.org> and Holger Hans Peter Freyther <zecke@selfish.org> Only dap_ap_select when we are going to do a memory access
in the fast reg case.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2636 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/target/cortex_a8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c index 9585b35c..9efd4e40 100644 --- a/src/target/cortex_a8.c +++ b/src/target/cortex_a8.c @@ -589,7 +589,6 @@ int cortex_a8_debug_entry(target_t *target) } /* Examine target state and mode */ - dap_ap_select(swjdp, swjdp_memoryap); if (cortex_a8->fast_reg_read) target_alloc_working_area(target, 64, ®file_working_area); @@ -602,6 +601,7 @@ int cortex_a8_debug_entry(target_t *target) } else { + dap_ap_select(swjdp, swjdp_memoryap); cortex_a8_read_regs_through_mem(target, regfile_working_area->address, regfile); dap_ap_select(swjdp, swjdp_memoryap); |