target/cortex_m: Change sleep to running state
authorKevin Yang <kangyang@google.com>
Wed, 4 Nov 2020 18:39:29 +0000 (10:39 -0800)
committerTomas Vanek <vanekt@fbl.cz>
Wed, 11 Nov 2020 21:22:16 +0000 (21:22 +0000)
commit06c7a53f1fff20bcc4be9e63f83ae98664777f34
tree775507b0493ae3489ca0d39e617735433f85fa59
parente44539d66c8929679321704768125df9ba7d5f67
target/cortex_m: Change sleep to running state

When the core is in sleep mode, the core is no longer retiring
instructions. Cortext M remains in "unknown" state. This patch converts
sleep mode to "running" state.

Change-Id: I1e9b6c9be51fd0f1f6ce81af9b1f5f9f1f43c661
Signed-off-by: Kevin Yang <kangyang@google.com>
Reviewed-on: http://openocd.zylin.com/5921
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
src/target/cortex_m.c
src/target/target.h