From: oharboe at B. <oh...@ma...> - 2009-08-26 21:23:36
|
Author: oharboe Date: 2009-08-26 21:23:35 +0200 (Wed, 26 Aug 2009) New Revision: 2636 Modified: trunk/src/target/cortex_a8.c Log: Matt Hsu <ma...@0x...> and Holger Hans Peter Freyther <ze...@se...> Only dap_ap_select when we are going to do a memory access in the fast reg case. Modified: trunk/src/target/cortex_a8.c =================================================================== --- trunk/src/target/cortex_a8.c 2009-08-26 19:22:28 UTC (rev 2635) +++ trunk/src/target/cortex_a8.c 2009-08-26 19:23:35 UTC (rev 2636) @@ -589,7 +589,6 @@ } /* 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 @@ } 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); |