TAP_TLR won't work in a pathmove sequence. OpenOCD shouldn't and doesn't need to...
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 4 Aug 2008 06:54:58 +0000 (06:54 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 4 Aug 2008 06:54:58 +0000 (06:54 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@886 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/jtag.c

index 05c6628b3f58faedabff46c116d4a1e51e8aefc0..04b3892d23fc2d296d6f8007241ba29a347b944f 100644 (file)
@@ -854,6 +854,11 @@ void jtag_add_pathmove(int num_states, enum tap_state *path)
 
        for (i=0; i<num_states; i++)
        {
+               if (path[i] == TAP_TLR)
+               {
+                       LOG_ERROR("BUG: TAP_TLR is not a valid state for pathmove sequences");
+                       exit(-1);
+               }
                if ((tap_transitions[cur_state].low != path[i])&&
                                (tap_transitions[cur_state].high != path[i]))
                {