diff options
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 |
commit | 50dc56a488c6e4d5acdfd73f12e3502e1586c51e (patch) | |
tree | 4a7d9fbaa62d442eb8bb968903f85b9c0b959e31 /src/svf | |
parent | 57d7743639d5092770d79f7c4b12ae694c482750 (diff) | |
download | openocd_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/svf')
-rw-r--r-- | src/svf/svf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/svf/svf.c b/src/svf/svf.c index 28595d5b..fba499c3 100644 --- a/src/svf/svf.c +++ b/src/svf/svf.c @@ -1084,7 +1084,7 @@ static int svf_run_command(struct command_context *cmd_ctx, char *cmd_str) field.out_value = &svf_tdi_buffer[svf_buffer_index]; field.in_value = &svf_tdi_buffer[svf_buffer_index]; /* NOTE: doesn't use SVF-specified state paths */ - jtag_add_plain_dr_scan(1, &field, svf_para.dr_end_state); + jtag_add_plain_dr_scan(field.num_bits, field.out_value, field.in_value, svf_para.dr_end_state); svf_buffer_index += (i + 7) >> 3; } @@ -1179,7 +1179,8 @@ static int svf_run_command(struct command_context *cmd_ctx, char *cmd_str) field.out_value = &svf_tdi_buffer[svf_buffer_index]; field.in_value = &svf_tdi_buffer[svf_buffer_index]; /* NOTE: doesn't use SVF-specified state paths */ - jtag_add_plain_ir_scan(1, &field, svf_para.ir_end_state); + jtag_add_plain_ir_scan(field.num_bits, field.out_value, field.in_value, + svf_para.ir_end_state); svf_buffer_index += (i + 7) >> 3; } |