From: Andreas Fritiofson Date: Tue, 9 Oct 2012 14:47:16 +0000 (+0200) Subject: adi_v5_jtag.c: Avoid infinite recursion in jtagdp_transaction_endcheck() X-Git-Tag: v0.7.0-rc1~184 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=077d77140ca7aaff3f301c33f20f3831d0913c11;p=openocd adi_v5_jtag.c: Avoid infinite recursion in jtagdp_transaction_endcheck() Change-Id: I81163d9c2ff97ed768f8a3ac1505a8d2b5016b91 Signed-off-by: Peter Stuge Reviewed-on: http://openocd.zylin.com/908 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- diff --git a/src/target/adi_v5_jtag.c b/src/target/adi_v5_jtag.c index b6473b01..9f37bd55 100644 --- a/src/target/adi_v5_jtag.c +++ b/src/target/adi_v5_jtag.c @@ -254,7 +254,7 @@ static int jtagdp_transaction_endcheck(struct adiv5_dap *dap) DP_CTRL_STAT, DPAP_READ, 0, &ctrlstat); if (retval != ERROR_OK) return retval; - retval = dap_run(dap); + retval = jtag_execute_queue(); if (retval != ERROR_OK) return retval; dap->ack = dap->ack & 0x7; @@ -305,7 +305,7 @@ static int jtagdp_transaction_endcheck(struct adiv5_dap *dap) DP_CTRL_STAT, DPAP_READ, 0, &ctrlstat); if (retval != ERROR_OK) return retval; - retval = dap_run(dap); + retval = jtag_execute_queue(); if (retval != ERROR_OK) return retval; @@ -321,14 +321,14 @@ static int jtagdp_transaction_endcheck(struct adiv5_dap *dap) if (retval != ERROR_OK) return retval; - retval = dap_run(dap); + retval = jtag_execute_queue(); if (retval != ERROR_OK) return retval; LOG_ERROR("MEM_AP_CSW 0x%" PRIx32 ", MEM_AP_TAR 0x%" PRIx32, mem_ap_csw, mem_ap_tar); } - retval = dap_run(dap); + retval = jtag_execute_queue(); if (retval != ERROR_OK) return retval; return ERROR_JTAG_DEVICE_ERROR;