This is an automated email from Gerrit.

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

-- gerrit

commit 5a8cabefc5ca3718b1231ce60de9e9731b475a03
Author: Alamy Liu <[email protected]>
Date:   Thu Aug 27 14:13:56 2015 -0700

    aarch64: RX_FULL handling - dap_run()
    
    Change-Id: Ie6057bddb0b1ecf29af9805357aeab67c58d5c7f
    Signed-off-by: Alamy Liu <[email protected]>

diff --git a/src/target/aarch64.c b/src/target/aarch64.c
index 7cc192c..18c3b3b 100644
--- a/src/target/aarch64.c
+++ b/src/target/aarch64.c
@@ -367,10 +367,18 @@ static int aarch64_dpm_prepare(struct arm_dpm *dpm)
        if (dscr & DSCR_DTR_RX_FULL) {
                LOG_ERROR("DSCR_DTR_RX_FULL, dscr 0x%08" PRIx32, dscr);
                /* Clear DCCRX */
-               retval = aarch64_exec_opcode(
-                               a8->armv8_common.arm.target,
-                               0xd5130400,
-                               &dscr);
+               retval = mem_ap_sel_read_u32(swjdp, a8->armv8_common.debug_ap,
+                       a8->armv8_common.debug_base + CPUDBG_DTRRX, &dscr);
+               if (retval != ERROR_OK)
+                       return retval;
+
+               /* Clear sticky error */
+               retval = mem_ap_sel_write_u32(swjdp, a8->armv8_common.debug_ap,
+                       a8->armv8_common.debug_base + CPUDBG_DRCR, DRCR_CSE);
+               if (retval != ERROR_OK)
+                       return retval;
+
+               retval = dap_run(swjdp);
                if (retval != ERROR_OK)
                        return retval;
        }

-- 

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to