Skip to content
Snippets Groups Projects
Commit bbd84417 authored by Øyvind Harboe's avatar Øyvind Harboe
Browse files

arm11: disable broken optimization for setting current scan chain

parent 0d7a948c
No related branches found
No related tags found
No related merge requests found
...@@ -199,11 +199,17 @@ int arm11_add_debug_SCAN_N(struct arm11_common *arm11, ...@@ -199,11 +199,17 @@ int arm11_add_debug_SCAN_N(struct arm11_common *arm11,
* NOTE: the ITRSEL instruction fakes SCREG changing; * NOTE: the ITRSEL instruction fakes SCREG changing;
* but leaves its actual value unchanged. * but leaves its actual value unchanged.
*/ */
#if 0
// FIX!!! the optimization below is broken because we do not
// invalidate the cur_scan_chain upon a TRST/TMS. See arm_jtag.c
// for example on how to invalidate cur_scan_chain. Tested patches gladly
// accepted!
if (arm11->jtag_info.cur_scan_chain == chain) { if (arm11->jtag_info.cur_scan_chain == chain) {
JTAG_DEBUG("SCREG <= %d SKIPPED", chain); JTAG_DEBUG("SCREG <= %d SKIPPED", chain);
return jtag_add_statemove((state == ARM11_TAP_DEFAULT) return jtag_add_statemove((state == ARM11_TAP_DEFAULT)
? TAP_DRPAUSE : state); ? TAP_DRPAUSE : state);
} }
#endif
JTAG_DEBUG("SCREG <= %d", chain); JTAG_DEBUG("SCREG <= %d", chain);
arm11_add_IR(arm11, ARM11_SCAN_N, ARM11_TAP_DEFAULT); arm11_add_IR(arm11, ARM11_SCAN_N, ARM11_TAP_DEFAULT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment