]> git.gag.com Git - fw/openocd/commit
target/arc: remove saving context during reset
authorEvgeniy Didin <didin@synopsys.com>
Tue, 17 Mar 2020 11:06:24 +0000 (14:06 +0300)
committerOleksij Rempel <linux@rempel-privat.de>
Mon, 20 Apr 2020 17:22:53 +0000 (18:22 +0100)
commitea4f98046fe2f9d8362feadb50f058a9fff7ad4f
tree6f28e52ce8d5c642341a78b05588b824f1fda671
parenta7d98680e20bf8eccb9a7ccc67fef390ddb90f03
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.

Changes: 16.04:
Fix - Move setting target->state = TARGET_HALT after
"target->state == TARGET_RUNNIG" check, otherwise
this check makes no sense

Change-Id: I92ab6ec71cf58273bb8401d14a562035de3deab4
Signed-off-by: Evgeniy Didin <didin@synopsys.com>
Reviewed-on: http://openocd.zylin.com/5524
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
src/target/arc.c