From 2278878a05d8dfbbed3e59f0cfbeeb598af3129c Mon Sep 17 00:00:00 2001 From: Nima Palizban Date: Thu, 1 Dec 2022 12:41:30 -0500 Subject: [PATCH] src/target/mips_m4k.c: set missing flag in set_watchpoint Without the fix, will see "Can not find free FP Comparator" error log Change-Id: Id0d91cc02b7055e44d27507f9c05ccd48ff49838 Signed-off-by: Nima Palizban Fixes: fb43f1ff4e2f (target: Rework 'set' variable of break-/watchpoints) Reviewed-on: https://review.openocd.org/c/openocd/+/7389 Tested-by: jenkins Reviewed-by: Tomas Vanek Reviewed-by: Antonio Borneo --- src/target/mips_m4k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c index e85018c878..491b247b15 100644 --- a/src/target/mips_m4k.c +++ b/src/target/mips_m4k.c @@ -900,7 +900,7 @@ static int mips_m4k_set_watchpoint(struct target *target, LOG_ERROR("BUG: watchpoint->rw neither read, write nor access"); } - watchpoint->number = wp_num; + watchpoint_set(watchpoint, wp_num); comparator_list[wp_num].used = 1; comparator_list[wp_num].bp_value = watchpoint->address; -- 2.30.2