]> git.sur5r.net Git - openocd/commitdiff
plugged bug w/irlen > 32 introduce in 1672
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 8 May 2009 20:48:28 +0000 (20:48 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Fri, 8 May 2009 20:48:28 +0000 (20:48 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1683 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/jtag.c

index 4bc042651648df04d9bbc45b0150454ea2912ac9..6f7845b5d72ee5507a149e2981d41770e8421a44 100644 (file)
@@ -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])
                        {