Browse Source

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>
tags/v0.5.0-rc1
Øyvind Harboe 12 years ago
parent
commit
ec2b8d71ac
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/jtag/zy1000/zy1000.c

+ 5
- 0
src/jtag/zy1000/zy1000.c View File

@@ -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;
}
}


Loading…
Cancel
Save