From 7992eaf0fcfa3afe9941200fd76b0c296aadb356 Mon Sep 17 00:00:00 2001 From: oharboe Date: Sat, 30 May 2009 11:37:21 +0000 Subject: [PATCH] remove unused JTAG_END_STATE git-svn-id: svn://svn.berlios.de/openocd/trunk@1949 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/jtag/amt_jtagaccel.c | 7 ------- src/jtag/arm-jtag-ew.c | 9 --------- src/jtag/bitbang.c | 7 ------- src/jtag/bitq.c | 7 ------- src/jtag/gw16012.c | 7 ------- src/jtag/jlink.c | 1 - src/jtag/rlink/rlink.c | 8 -------- src/jtag/usbprog.c | 7 ------- src/jtag/vsllink.c | 9 --------- 9 files changed, 62 deletions(-) diff --git a/src/jtag/amt_jtagaccel.c b/src/jtag/amt_jtagaccel.c index f739dce0..0271c018 100644 --- a/src/jtag/amt_jtagaccel.c +++ b/src/jtag/amt_jtagaccel.c @@ -332,13 +332,6 @@ static int amt_jtagaccel_execute_queue(void) { switch (cmd->type) { - case JTAG_END_STATE: -#ifdef _DEBUG_JTAG_IO_ - LOG_DEBUG("end_state: %i", cmd->cmd.end_state->end_state); -#endif - if (cmd->cmd.end_state->end_state != TAP_INVALID) - amt_jtagaccel_end_state(cmd->cmd.end_state->end_state); - break; case JTAG_RESET: #ifdef _DEBUG_JTAG_IO_ LOG_DEBUG("reset trst: %i srst %i", cmd->cmd.reset->trst, cmd->cmd.reset->srst); diff --git a/src/jtag/arm-jtag-ew.c b/src/jtag/arm-jtag-ew.c index f883d5dd..180f40d1 100644 --- a/src/jtag/arm-jtag-ew.c +++ b/src/jtag/arm-jtag-ew.c @@ -133,15 +133,6 @@ static int armjtagew_execute_queue(void) { switch (cmd->type) { - case JTAG_END_STATE: - DEBUG_JTAG_IO("end_state: %i", cmd->cmd.end_state->end_state); - - if (cmd->cmd.end_state->end_state != TAP_INVALID) - { - armjtagew_end_state(cmd->cmd.end_state->end_state); - } - break; - case JTAG_RUNTEST: DEBUG_JTAG_IO( "runtest %i cycles, end in %i", cmd->cmd.runtest->num_cycles, \ cmd->cmd.runtest->end_state); diff --git a/src/jtag/bitbang.c b/src/jtag/bitbang.c index a4c2c439..ce4fa19f 100644 --- a/src/jtag/bitbang.c +++ b/src/jtag/bitbang.c @@ -253,13 +253,6 @@ int bitbang_execute_queue(void) { switch (cmd->type) { - case JTAG_END_STATE: -#ifdef _DEBUG_JTAG_IO_ - LOG_DEBUG("end_state: %s", tap_state_name(cmd->cmd.end_state->end_state) ); -#endif - if (cmd->cmd.end_state->end_state != TAP_INVALID) - bitbang_end_state(cmd->cmd.end_state->end_state); - break; case JTAG_RESET: #ifdef _DEBUG_JTAG_IO_ LOG_DEBUG("reset trst: %i srst %i", cmd->cmd.reset->trst, cmd->cmd.reset->srst); diff --git a/src/jtag/bitq.c b/src/jtag/bitq.c index b196ffc0..eaf7a63e 100644 --- a/src/jtag/bitq.c +++ b/src/jtag/bitq.c @@ -296,13 +296,6 @@ int bitq_execute_queue(void) { switch (cmd->type) { - case JTAG_END_STATE: -#ifdef _DEBUG_JTAG_IO_ - LOG_DEBUG("end_state: %i", cmd->cmd.end_state->end_state); -#endif - bitq_end_state(cmd->cmd.end_state->end_state); - break; - case JTAG_RESET: #ifdef _DEBUG_JTAG_IO_ LOG_DEBUG("reset trst: %i srst %i", cmd->cmd.reset->trst, cmd->cmd.reset->srst); diff --git a/src/jtag/gw16012.c b/src/jtag/gw16012.c index c6acacab..f5f8b866 100644 --- a/src/jtag/gw16012.c +++ b/src/jtag/gw16012.c @@ -354,13 +354,6 @@ static int gw16012_execute_queue(void) { switch (cmd->type) { - case JTAG_END_STATE: -#ifdef _DEBUG_JTAG_IO_ - LOG_DEBUG("end_state: %i", cmd->cmd.end_state->end_state); -#endif - if (cmd->cmd.end_state->end_state != TAP_INVALID) - gw16012_end_state(cmd->cmd.end_state->end_state); - break; case JTAG_RESET: #ifdef _DEBUG_JTAG_IO_ LOG_DEBUG("reset trst: %i srst %i", cmd->cmd.reset->trst, cmd->cmd.reset->srst); diff --git a/src/jtag/jlink.c b/src/jtag/jlink.c index 6d67da5f..e29324a5 100644 --- a/src/jtag/jlink.c +++ b/src/jtag/jlink.c @@ -234,7 +234,6 @@ static void jlink_execute_command(jtag_command_t *cmd) { switch (cmd->type) { - case JTAG_END_STATE: jlink_execute_end_state(cmd); break; case JTAG_RUNTEST: jlink_execute_runtest(cmd); break; case JTAG_STATEMOVE: jlink_execute_statemove(cmd); break; case JTAG_PATHMOVE: jlink_execute_pathmove(cmd); break; diff --git a/src/jtag/rlink/rlink.c b/src/jtag/rlink/rlink.c index 1dbd450b..7cebfcd9 100644 --- a/src/jtag/rlink/rlink.c +++ b/src/jtag/rlink/rlink.c @@ -1399,7 +1399,6 @@ int rlink_execute_queue(void) { switch (cmd->type) { - case JTAG_END_STATE: case JTAG_RUNTEST: case JTAG_STATEMOVE: case JTAG_PATHMOVE: @@ -1415,13 +1414,6 @@ int rlink_execute_queue(void) switch (cmd->type) { - case JTAG_END_STATE: -#ifdef _DEBUG_JTAG_IO_ - LOG_DEBUG("end_state: %i", cmd->cmd.end_state->end_state); -#endif - if (cmd->cmd.end_state->end_state != -1) - rlink_end_state(cmd->cmd.end_state->end_state); - break; case JTAG_RESET: #ifdef _DEBUG_JTAG_IO_ LOG_DEBUG("reset trst: %i srst %i", cmd->cmd.reset->trst, cmd->cmd.reset->srst); diff --git a/src/jtag/usbprog.c b/src/jtag/usbprog.c index 2794e175..dfde2955 100644 --- a/src/jtag/usbprog.c +++ b/src/jtag/usbprog.c @@ -135,13 +135,6 @@ static int usbprog_execute_queue(void) { switch (cmd->type) { - case JTAG_END_STATE: -#ifdef _DEBUG_JTAG_IO_ - LOG_DEBUG("end_state: %i", cmd->cmd.end_state->end_state); -#endif - if (cmd->cmd.end_state->end_state != TAP_INVALID) - usbprog_end_state(cmd->cmd.end_state->end_state); - break; case JTAG_RESET: #ifdef _DEBUG_JTAG_IO_ LOG_DEBUG("reset trst: %i srst %i", cmd->cmd.reset->trst, cmd->cmd.reset->srst); diff --git a/src/jtag/vsllink.c b/src/jtag/vsllink.c index 658f8c62..79444a9f 100644 --- a/src/jtag/vsllink.c +++ b/src/jtag/vsllink.c @@ -296,15 +296,6 @@ static int vsllink_execute_queue(void) { switch (cmd->type) { - case JTAG_END_STATE: - DEBUG_JTAG_IO("end_state: %s", tap_state_name(cmd->cmd.end_state->end_state)); - - if (cmd->cmd.end_state->end_state != TAP_INVALID) - { - vsllink_end_state(cmd->cmd.end_state->end_state); - } - break; - case JTAG_RUNTEST: DEBUG_JTAG_IO( "runtest %i cycles, end in %s", cmd->cmd.runtest->num_cycles, \ tap_state_name(cmd->cmd.runtest->end_state)); -- 2.39.5