target/arm_adi_v5: Fix clear sticky overrun flag during replay of commands
authormicbis <michele.bisogno.ct@renesas.com>
Wed, 26 May 2021 17:11:05 +0000 (19:11 +0200)
committerMatthias Welwarsky <matthias@welwarsky.de>
Mon, 31 May 2021 19:56:33 +0000 (20:56 +0100)
commitb40dc09dd9e05497bf956ca91f7153aa34b24854
treea39e3e6ebee614d2f5253caef34c3eb892c53a46
parent3b4e40120bc9c56442d1e177ecfbc8c4faa0ac7f
target/arm_adi_v5: Fix clear sticky overrun flag during replay of commands

When a WAIT occurs the commands after the WAIT are replayed and the
STICKYORUN is cleared. However if another WAIT occurs during the
command replay, the command itself is resent but the STICKYORUN bit
shall also be cleared. If this is not done, the MEM-AP hangs.

Change-Id: I14e8340cd5d8f58f4de31509da96cfa2ecb630d1
Signed-off-by: micbis <michele.bisogno.ct@renesas.com>
Reviewed-on: http://openocd.zylin.com/6278
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
src/target/adi_v5_jtag.c