]> git.sur5r.net Git - openocd/commitdiff
allow jtag minidriver access to cmd_queue_cur_state for jtag_add_pathmove()
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 24 Jul 2008 10:17:12 +0000 (10:17 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 24 Jul 2008 10:17:12 +0000 (10:17 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@867 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/jtag.c

index aae147252952ac57de7d12ebb9373d28091388d4..cbf52f09306b088d96df25a5da2f2f22420a7431 100644 (file)
@@ -862,9 +862,9 @@ void jtag_add_pathmove(int num_states, enum tap_state *path)
        
        jtag_prelude1();
        
-       cmd_queue_cur_state = path[num_states - 1];
 
        retval=interface_jtag_add_pathmove(num_states, path);
+       cmd_queue_cur_state = path[num_states - 1];
        if (retval!=ERROR_OK)
                jtag_error=retval;
 }