aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-10-04 15:48:34 -0700
committerGitHub <noreply@github.com>2017-10-04 15:48:34 -0700
commit77680cb23d20d8a53ce1ce1fe7f60b613dc269ef (patch)
treefad95e7a093629bd425e4956c151ac52fe0146bb
parentabe7eba25a7e8ae0c9daae6785ef2d204b626825 (diff)
parent916759e0de712f806aa5cdbfc23128ee8bdf6def (diff)
downloadriscv-openocd-77680cb23d20d8a53ce1ce1fe7f60b613dc269ef.zip
riscv-openocd-77680cb23d20d8a53ce1ce1fe7f60b613dc269ef.tar.gz
riscv-openocd-77680cb23d20d8a53ce1ce1fe7f60b613dc269ef.tar.bz2
Merge pull request #125 from riscv/cleanup
Revert ae74097f (extra ftdi debug).
-rw-r--r--src/jtag/drivers/ftdi.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c
index 883cd24..342e321 100644
--- a/src/jtag/drivers/ftdi.c
+++ b/src/jtag/drivers/ftdi.c
@@ -430,40 +430,10 @@ static void ftdi_execute_pathmove(struct jtag_command *cmd)
tap_set_end_state(tap_get_state());
}
-#ifdef _DEBUG_JTAG_IO_
-static void debug_jtag_io_value(const char *prefix, const uint8_t *value,
- unsigned int num_bits)
-{
- if (!value) {
- return;
- }
-
- char buf[33];
- char *bufp = buf;
- unsigned int chars = (num_bits + 3) / 4;
- for (unsigned int i = 0; i < chars; i++) {
- if (i && (i % 32) == 0) {
- DEBUG_JTAG_IO(" %s%s", prefix, buf);
- bufp = buf;
- }
- int start_bit = 4 * (chars - i - 1);
- sprintf(bufp, "%01x", buf_get_u32(value, start_bit, 4));
- bufp++;
- }
- if (bufp != buf) {
- DEBUG_JTAG_IO(" %s%s", prefix, buf);
- }
-}
-#endif
-
static void ftdi_execute_scan(struct jtag_command *cmd)
{
DEBUG_JTAG_IO("%s type:%d", cmd->cmd.scan->ir_scan ? "IRSCAN" : "DRSCAN",
jtag_scan_type(cmd->cmd.scan));
-#ifdef _DEBUG_JTAG_IO_
- debug_jtag_io_value(" out=", cmd->cmd.scan->fields->out_value,
- cmd->cmd.scan->fields->num_bits);
-#endif
/* Make sure there are no trailing fields with num_bits == 0, or the logic below will fail. */
while (cmd->cmd.scan->num_fields > 0
@@ -545,11 +515,6 @@ static void ftdi_execute_scan(struct jtag_command *cmd)
DEBUG_JTAG_IO("%s scan, %i bits, end in %s",
(cmd->cmd.scan->ir_scan) ? "IR" : "DR", scan_size,
tap_state_name(tap_get_end_state()));
-
-#ifdef _DEBUG_JTAG_IO_
- debug_jtag_io_value(" in=", cmd->cmd.scan->fields->in_value,
- cmd->cmd.scan->fields->num_bits);
-#endif
}
static void ftdi_execute_reset(struct jtag_command *cmd)