diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-03-21 13:30:09 +0100 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-03-21 13:47:02 +0100 |
commit | ec2b8d71ac1fb2e8d6c8057a5e1d0a27bd7bd110 (patch) | |
tree | 1cf9fa839e73f6adc91f88ad263944c780de87d9 /src/jtag/zy1000 | |
parent | a34357019545b1b449cbc52de99e52e68c3dbcb1 (diff) | |
download | riscv-openocd-ec2b8d71ac1fb2e8d6c8057a5e1d0a27bd7bd110.zip riscv-openocd-ec2b8d71ac1fb2e8d6c8057a5e1d0a27bd7bd110.tar.gz riscv-openocd-ec2b8d71ac1fb2e8d6c8057a5e1d0a27bd7bd110.tar.bz2 |
zy1000: fix bug in ir scan handling
set cur_instr to BYPASS as optimisation code will
rely on checking the cached value.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/jtag/zy1000')
-rw-r--r-- | src/jtag/zy1000/zy1000.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jtag/zy1000/zy1000.c b/src/jtag/zy1000/zy1000.c index ee61003..5416c6b 100644 --- a/src/jtag/zy1000/zy1000.c +++ b/src/jtag/zy1000/zy1000.c @@ -618,6 +618,11 @@ int interface_jtag_add_ir_scan(struct jtag_tap *active, const struct scan_field assert(scan_size <= 32); shiftValueInner(TAP_IRSHIFT, pause_state, scan_size, 0xffffffff); + /* Optimization code will check what the cur_instr is set to, so + * we must set it to bypass value. + */ + buf_set_ones(tap->cur_instr, tap->ir_length); + tap->bypass = 1; } } |