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/3342
-- gerrit commit 05da1b95b5be23667b1b3bca345689444309322c Author: Alamy Liu <[email protected]> Date: Thu Dec 3 13:36:24 2015 -0800 aarch64: Set initial target state Condition: telnet debugging port get wrong target state > targets TargetName Type Endian TapName State ------------------ ---------- ------ ------------------ ------------ a57.cpu0 aarch64 little armv8.dap running * a57.cpu1 aarch64 little armv8.dap unknown Investigation: target->state was normally assigned in poll function. In the case without GDB connection, target->state is not well assigned. Solution: Assign target->state value when it is examined (aarch64_examine) Change-Id: I2a718e6e0c0c1b7dea1b21b1fb3c63d7f27493c9 Signed-off-by: Alamy Liu <[email protected]> diff --git a/src/target/aarch64.c b/src/target/aarch64.c index bbe91fe..47e7221 100644 --- a/src/target/aarch64.c +++ b/src/target/aarch64.c @@ -3245,6 +3245,13 @@ err_fail_dump_regs: * It's just a default value here. see debug_entry for detail */ armv8->arm.core_state = ARM_STATE_AARCH64; + /* Set target state */ + target->state = armv8_is_pe_status_valid(edscr) + ? ( PE_STATUS_HALTED(EDSCR_STATUS(edscr)) + ? TARGET_HALTED + : TARGET_RUNNING ) + : TARGET_UNKNOWN; + retval = aarch64_dpm_setup(aarch64, debug); 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
