From 96509c764ae3ad31c48d11f832d312cf53f97f1b Mon Sep 17 00:00:00 2001 From: oharboe Date: Fri, 8 May 2009 20:48:28 +0000 Subject: [PATCH] plugged bug w/irlen > 32 introduce in 1672 git-svn-id: svn://svn.berlios.de/openocd/trunk@1683 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/jtag/jtag.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index 4bc04265..6f7845b5 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -574,7 +574,11 @@ void jtag_add_ir_scan(int num_fields, scan_field_t *fields, tap_state_t state) for (j = 0; j < num_fields; j++) { jtag_tap_t *tap=fields[j].tap; - jtag_check_value_mask(fields+j, tap->expected, tap->expected_mask); + if (fields[j].in_value!=NULL) + { + /* we verify max 32 bit long irlens. */ + jtag_check_value_mask(fields+j, tap->expected, tap->expected_mask); + } if (modified[j]) { -- 2.39.5