This is an automated email from Gerrit.

Evan Hunter ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/2891

-- gerrit

commit 8c5f4c0bc1ba0761f8f84df6b2d4fbe6d474484c
Author: Evan Hunter <[email protected]>
Date:   Wed Jul 29 13:24:51 2015 +0100

    ADIv5: convert numeric values to use defines with meaningful names
    
    Change-Id: Idb72750d0aa893119fb405eb27215cba455428a0
    Signed-off-by: Evan Hunter <[email protected]>

diff --git a/src/target/adi_v5_jtag.c b/src/target/adi_v5_jtag.c
index c1e1286..52709c5 100644
--- a/src/target/adi_v5_jtag.c
+++ b/src/target/adi_v5_jtag.c
@@ -270,7 +270,8 @@ static int jtagdp_transaction_endcheck(struct adiv5_dap 
*dap)
        if (ctrlstat & (SSTICKYORUN | SSTICKYERR)) {
                LOG_DEBUG("jtag-dp: CTRL/STAT error, 0x%" PRIx32, ctrlstat);
                /* Check power to debug regions */
-               if ((ctrlstat & 0xf0000000) != 0xf0000000) {
+               if ((ctrlstat & (CDBGPWRUPREQ | CDBGPWRUPACK | CSYSPWRUPREQ | 
CSYSPWRUPACK) !=
+                                               (CDBGPWRUPREQ | CDBGPWRUPACK | 
CSYSPWRUPREQ | CSYSPWRUPACK)) {
                        LOG_ERROR("Debug regions are unpowered, an unexpected 
reset might have happened");
                        return ERROR_JTAG_DEVICE_ERROR;
                } else {

-- 

------------------------------------------------------------------------------
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to