diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2019-01-24 13:36:39 +0100 |
---|---|---|
committer | Matthias Welwarsky <matthias@welwarsky.de> | 2019-04-01 10:48:51 +0100 |
commit | 4db5299b5bd2c3e853f7383c076f9726dc588680 (patch) | |
tree | da97b41b1fc3ae028f99b267fc5368113272693d /src/target/cortex_m.h | |
parent | 16432e681e0d776d7f40f14ad0aed3f7e17b848b (diff) |
target/cortex_m: remove fp_code_available counting
fp_code_available looses sync with the real number of free comparators
as soon as cortex_m_set_breakpoint() returns an error. Remove the counter
and always go through the fp_comparator_list to find a free one.
Change-Id: I9f6e06c36d8a57ad11df5155e8a1a3aff6d833a5
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4870
Tested-by: jenkins
Reviewed-by: Jānis Skujenieks <janis.skujenieks@gmail.com>
Reviewed-by: Christopher Head <chead@zaber.com>
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Diffstat (limited to 'src/target/cortex_m.h')
-rw-r--r-- | src/target/cortex_m.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/target/cortex_m.h b/src/target/cortex_m.h index b375d111..4b207467 100644 --- a/src/target/cortex_m.h +++ b/src/target/cortex_m.h @@ -172,7 +172,6 @@ struct cortex_m_common { /* Flash Patch and Breakpoint (FPB) */ int fp_num_lit; int fp_num_code; - int fp_code_available; int fp_rev; bool fpb_enabled; struct cortex_m_fp_comparator *fp_comparator_list; |