cortex: Set default memaccess_tck only during examine
It's currently set during target creation but the AP that will be used for the target is not even known. Change-Id: I4502e7eb1fa8d90f746445b8cf8a4c21cb7d519e Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/3155 Tested-by: jenkins Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
This commit is contained in:
@@ -2929,6 +2929,8 @@ static int cortex_a_examine_first(struct target *target)
|
||||
return retval;
|
||||
}
|
||||
|
||||
armv7a->debug_ap->memaccess_tck = 80;
|
||||
|
||||
/* Search for the AHB-AB.
|
||||
* REVISIT: We should search for AXI-AP as well and make sure the AP's MEMTYPE says it
|
||||
* can access system memory. */
|
||||
@@ -3117,7 +3119,6 @@ static int cortex_a_init_arch_info(struct target *target,
|
||||
tap->dap->tap = tap;
|
||||
}
|
||||
|
||||
tap->dap->ap[dap_ap_get_select(tap->dap)].memaccess_tck = 80;
|
||||
armv7a->arm.dap = tap->dap;
|
||||
|
||||
cortex_a->fast_reg_read = 0;
|
||||
|
||||
Reference in New Issue
Block a user