summaryrefslogtreecommitdiff
path: root/src/xsvf
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-03-06 11:29:59 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-03-08 08:12:26 +0100
commit50dc56a488c6e4d5acdfd73f12e3502e1586c51e (patch)
tree4a7d9fbaa62d442eb8bb968903f85b9c0b959e31 /src/xsvf
parent57d7743639d5092770d79f7c4b12ae694c482750 (diff)
downloadopenocd+libswd-50dc56a488c6e4d5acdfd73f12e3502e1586c51e.tar.gz
openocd+libswd-50dc56a488c6e4d5acdfd73f12e3502e1586c51e.tar.bz2
openocd+libswd-50dc56a488c6e4d5acdfd73f12e3502e1586c51e.tar.xz
openocd+libswd-50dc56a488c6e4d5acdfd73f12e3502e1586c51e.zip
jtag: simplify jtag_add_plain_ir/dr_scan
These fn's now clearly just clock out/in bits. No mystical fields are involved. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/xsvf')
-rw-r--r--src/xsvf/xsvf.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/xsvf/xsvf.c b/src/xsvf/xsvf.c
index 14bed8ef..f2c1a422 100644
--- a/src/xsvf/xsvf.c
+++ b/src/xsvf/xsvf.c
@@ -481,7 +481,8 @@ COMMAND_HANDLER(handle_xsvf_command)
field.in_value = calloc(DIV_ROUND_UP(field.num_bits, 8), 1);
if (tap == NULL)
- jtag_add_plain_dr_scan(1, &field, jtag_set_end_state(TAP_DRPAUSE));
+ jtag_add_plain_dr_scan(field.num_bits, field.out_value, field.in_value,
+ jtag_set_end_state(TAP_DRPAUSE));
else
jtag_add_dr_scan(tap, 1, &field, jtag_set_end_state(TAP_DRPAUSE));
@@ -702,7 +703,8 @@ COMMAND_HANDLER(handle_xsvf_command)
if (tap == NULL)
- jtag_add_plain_ir_scan(1, &field, my_end_state);
+ jtag_add_plain_ir_scan(field.num_bits,
+ field.out_value, field.in_value, my_end_state);
else
jtag_add_ir_scan(tap, &field, my_end_state);
@@ -936,7 +938,8 @@ COMMAND_HANDLER(handle_xsvf_command)
LOG_USER("LSDR retry %d", attempt);
if (tap == NULL)
- jtag_add_plain_dr_scan(1, &field, jtag_set_end_state(TAP_DRPAUSE));
+ jtag_add_plain_dr_scan(field.num_bits, field.out_value, field.in_value,
+ jtag_set_end_state(TAP_DRPAUSE));
else
jtag_add_dr_scan(tap, 1, &field, jtag_set_end_state(TAP_DRPAUSE));