From: Nima Palizban Date: Thu, 1 Dec 2022 17:41:30 +0000 (-0500) Subject: src/target/mips_m4k.c: set missing flag in set_watchpoint X-Git-Tag: v0.12.0-rc3~9 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=2278878a05d8dfbbed3e59f0cfbeeb598af3129c 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 --- 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;