diff options
author | Evan Hunter <ehunter@broadcom.com> | 2012-10-24 07:53:55 +1100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2013-07-01 08:37:14 +0000 |
commit | 7641fb6ac6bc0736627a26dad9616fcb67cf59ab (patch) | |
tree | 8f9d7fd4c577c7c348469490875d7f35fab80735 /src/jtag/tcl.c | |
parent | 18e15390df676636cd2f29093ef78ec6e757036a (diff) | |
download | riscv-openocd-7641fb6ac6bc0736627a26dad9616fcb67cf59ab.zip riscv-openocd-7641fb6ac6bc0736627a26dad9616fcb67cf59ab.tar.gz riscv-openocd-7641fb6ac6bc0736627a26dad9616fcb67cf59ab.tar.bz2 |
Add support for 64 bit parameter to irscan
Change-Id: I89e0422456c59ee86c4b6d9bd3b3ad32051b31ac
Signed-off-by: Evan Hunter <ehunter@broadcom.com>
Reviewed-on: http://openocd.zylin.com/831
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/jtag/tcl.c')
-rw-r--r-- | src/jtag/tcl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c index 5c5198e..d0020cd 100644 --- a/src/jtag/tcl.c +++ b/src/jtag/tcl.c @@ -1141,12 +1141,12 @@ COMMAND_HANDLER(handle_irscan_command) fields[i].num_bits = field_size; fields[i].out_value = malloc(DIV_ROUND_UP(field_size, 8)); - uint32_t value; - retval = parse_u32(CMD_ARGV[i * 2 + 1], &value); + uint64_t value; + retval = parse_u64(CMD_ARGV[i * 2 + 1], &value); if (ERROR_OK != retval) goto error_return; void *v = (void *)fields[i].out_value; - buf_set_u32(v, 0, field_size, value); + buf_set_u64(v, 0, field_size, value); fields[i].in_value = NULL; } |