Fix bug in a warning. It warned about "huge IRlength" for an
older JRC with a two bit instruction register ... wrong!
---
src/jtag/tcl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Fix bug in a warning. It warned about "huge IRlength" for an
older JRC with a two bit instruction register ... wrong!
---
src/jtag/tcl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/src/jtag/tcl.c
+++ b/src/jtag/tcl.c
@@ -416,7 +416,7 @@ static int jim_newtap_cmd( Jim_GetOptInf
}
switch(n->value){
case NTAP_OPT_IRLEN:
- if (w < (jim_wide) sizeof(pTap->ir_capture_value))
+ if (w > (jim_wide) (8 * sizeof(pTap->ir_capture_value)))
LOG_WARNING("huge IR length %d", (int) w);
pTap->ir_length = w;
reqbits &= (~(NTREQ_IRLEN));
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development