This is an automated email from Gerrit. Evgeniy Didin (di...@synopsys.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/5524
-- gerrit commit b6478339138adf922d7b553187a28b4999769da7 Author: Evgeniy Didin <di...@synopsys.com> Date: Tue Mar 17 14:06:24 2020 +0300 target/arc: remove saving context during reset In arc_poll() function we handle the cases, when jtag indicates, that processor is halted, but target->state is not TARGET_HALTED. In case, when processor was halted and target->state was TARGET_RUNNING, we should save context. At the same time if target->state was TARGET_RESET we do not need to save context. Change-Id: I92ab6ec71cf58273bb8401d14a562035de3deab4 Signed-off-by: Evgeniy Didin <di...@synopsys.com> diff --git a/src/target/arc.c b/src/target/arc.c index 244dd52..921f119 100644 --- a/src/target/arc.c +++ b/src/target/arc.c @@ -929,7 +929,9 @@ static int arc_poll(struct target *target) if (value & AUX_STATUS32_REG_HALT_BIT) { LOG_DEBUG("ARC core in halt or reset state."); target->state = TARGET_HALTED; - CHECK_RETVAL(arc_debug_entry(target)); + /* Save context if target was not in reset state */ + if (target->state == TARGET_RUNNING) + CHECK_RETVAL(arc_debug_entry(target)); CHECK_RETVAL(target_call_event_callbacks(target, TARGET_EVENT_HALTED)); } else { LOG_DEBUG("Discrepancy of STATUS32[0] HALT bit and ARC_JTAG_STAT_RU, " -- _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel