diff options
author | Christopher Head <chead@zaber.com> | 2018-07-31 10:05:36 -0700 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2018-08-01 14:37:20 +0100 |
commit | c04a59286ea2ba014fbd6f02b8c1072c8b29b924 (patch) | |
tree | b5c8940312ca1c6950493532b16e52ba29e4cbcf | |
parent | 9bcd2b2fa3709a6653ff2f7ea8d0af5d4be790f0 (diff) |
target/cortex_m: fix incorrect comment
The code sets C_MASKINTS if that bit is not already set (correctly). Fix
the comment to agree.
Change-Id: If4543e2660a9fa2cdabb2d2698427a6c8d9a274c
Signed-off-by: Christopher Head <chead@zaber.com>
Reviewed-on: http://openocd.zylin.com/4620
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
-rw-r--r-- | src/target/cortex_m.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index 03dc5157..f1869467 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -165,7 +165,7 @@ static int cortex_m_single_step_core(struct target *target) struct armv7m_common *armv7m = &cortex_m->armv7m; int retval; - /* Mask interrupts before clearing halt, if done already. This avoids + /* Mask interrupts before clearing halt, if not done already. This avoids * Erratum 377497 (fixed in r1p0) where setting MASKINTS while clearing * HALT can put the core into an unknown state. */ |