From 4db5299b5bd2c3e853f7383c076f9726dc588680 Mon Sep 17 00:00:00 2001 From: Tomas Vanek Date: Thu, 24 Jan 2019 13:36:39 +0100 Subject: target/cortex_m: remove fp_code_available counting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: http://openocd.zylin.com/4870 Tested-by: jenkins Reviewed-by: Jānis Skujenieks Reviewed-by: Christopher Head Reviewed-by: Matthias Welwarsky --- src/target/cortex_m.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/target/cortex_m.h') 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; -- cgit v1.2.3-18-g5258