Skip to content

Commit

Permalink
jtag_vpi: fix signed/unsigned comparison jtag_vpi_stableclocks
Browse files Browse the repository at this point in the history
Change-Id: Id2b00fbc8ba627f4465c109fbde6e010faaff9d2
Signed-off-by: Parshintsev Anatoly <[email protected]>
Reviewed-on: https://review.openocd.org/c/openocd/+/8462
Reviewed-by: Jan Matyas <[email protected]>
Reviewed-by: Antonio Borneo <[email protected]>
Tested-by: jenkins
Reviewed-by: Tomas Vanek <[email protected]>
  • Loading branch information
aap-sc authored and borneoa committed Sep 7, 2024
1 parent 324469d commit f9b2a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jtag/drivers/jtag_vpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ static int jtag_vpi_stableclocks(unsigned int num_cycles)
unsigned int cycles_remain = num_cycles;
int nb_bits;
int retval;
const int CYCLES_ONE_BATCH = sizeof(tms_bits) * 8;
const unsigned int CYCLES_ONE_BATCH = sizeof(tms_bits) * 8;

/* use TMS=1 in TAP RESET state, TMS=0 in all other stable states */
memset(&tms_bits, (tap_get_state() == TAP_RESET) ? 0xff : 0x00, sizeof(tms_bits));
Expand Down

0 comments on commit f9b2a1a

Please sign in to comment.