Skip to content

Commit 2278878

Browse files
npalizbanborneoa
authored andcommitted
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 <[email protected]> Fixes: fb43f1f (target: Rework 'set' variable of break-/watchpoints) Reviewed-on: https://review.openocd.org/c/openocd/+/7389 Tested-by: jenkins Reviewed-by: Tomas Vanek <[email protected]> Reviewed-by: Antonio Borneo <[email protected]>
1 parent 9501b26 commit 2278878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/target/mips_m4k.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ static int mips_m4k_set_watchpoint(struct target *target,
900900
LOG_ERROR("BUG: watchpoint->rw neither read, write nor access");
901901
}
902902

903-
watchpoint->number = wp_num;
903+
watchpoint_set(watchpoint, wp_num);
904904
comparator_list[wp_num].used = 1;
905905
comparator_list[wp_num].bp_value = watchpoint->address;
906906

0 commit comments

Comments
 (0)