summaryrefslogtreecommitdiff
path: root/src/target/adi_v5_jtag.c
diff options
context:
space:
mode:
authorTomek CEDRO <cederom@tlen.pl>2011-11-15 02:10:12 +0000
committerTomek CEDRO <cederom@tlen.pl>2011-11-15 02:10:12 +0000
commit68703e4a6b8891d93b0381031161abd10ca1e7a0 (patch)
treeaba871c72785d710e4abd36c503bd2e4f058aa16 /src/target/adi_v5_jtag.c
parenta29770d84b4f624ddfe30b84a2b99308f98f20f6 (diff)
downloadopenocd+libswd-68703e4a6b8891d93b0381031161abd10ca1e7a0.tar.gz
openocd+libswd-68703e4a6b8891d93b0381031161abd10ca1e7a0.tar.bz2
openocd+libswd-68703e4a6b8891d93b0381031161abd10ca1e7a0.tar.xz
openocd+libswd-68703e4a6b8891d93b0381031161abd10ca1e7a0.zip
Minor change in sticky bitnames of ABORT register.
Diffstat (limited to 'src/target/adi_v5_jtag.c')
-rw-r--r--src/target/adi_v5_jtag.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/target/adi_v5_jtag.c b/src/target/adi_v5_jtag.c
index 75461c3f..6cb21841 100644
--- a/src/target/adi_v5_jtag.c
+++ b/src/target/adi_v5_jtag.c
@@ -269,7 +269,7 @@ static int jtagdp_transaction_endcheck(struct adiv5_dap *dap)
/* REVISIT also STICKYCMP, for pushed comparisons (nyet used) */
/* Check for STICKYERR and STICKYORUN */
- if (ctrlstat & (SSTICKYORUN | SSTICKYERR))
+ if (ctrlstat & (STICKYORUN | STICKYERR))
{
LOG_DEBUG("jtag-dp: CTRL/STAT error, 0x%" PRIx32, ctrlstat);
/* Check power to debug regions */
@@ -296,18 +296,18 @@ static int jtagdp_transaction_endcheck(struct adiv5_dap *dap)
dap->ap_csw_value,
dap->ap_tar_value);
- if (ctrlstat & SSTICKYORUN)
+ if (ctrlstat & STICKYORUN)
LOG_ERROR("JTAG-DP OVERRUN - check clock, "
"memaccess, or reduce jtag speed");
- if (ctrlstat & SSTICKYERR)
+ if (ctrlstat & STICKYERR)
LOG_ERROR("JTAG-DP STICKY ERROR");
/* Clear Sticky Error Bits */
retval = adi_jtag_scan_inout_check_u32(dap, JTAG_DP_DPACC,
DP_CTRL_STAT, DPAP_WRITE,
- dap->dp_ctrl_stat | SSTICKYORUN
- | SSTICKYERR, NULL);
+ dap->dp_ctrl_stat | STICKYORUN
+ | STICKYERR, NULL);
if (retval != ERROR_OK)
return retval;
retval = adi_jtag_scan_inout_check_u32(dap, JTAG_DP_DPACC,