From: Øyvind H. <go...@us...> - 2010-03-01 15:40:28
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via b1c00e5a4e038068dce4512c5a2eb3735990b880 (commit) from 27401e4c80b137f599954ac521387b247002770c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit b1c00e5a4e038068dce4512c5a2eb3735990b880 Author: Ãyvind Harboe <oyv...@zy...> Date: Mon Mar 1 15:39:41 2010 +0100 zy1000: faster jtag_add_ir_scan() Faster and simpler. Signed-off-by: Ãyvind Harboe <oyv...@zy...> diff --git a/src/jtag/zy1000/zy1000.c b/src/jtag/zy1000/zy1000.c index 6465aaa..c5bc0ff 100644 --- a/src/jtag/zy1000/zy1000.c +++ b/src/jtag/zy1000/zy1000.c @@ -608,15 +608,9 @@ int interface_jtag_add_ir_scan(int num_fields, const struct scan_field *fields, if (!found) { /* if a device isn't listed, set it to BYPASS */ - uint8_t ones[]={0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}; - - struct scan_field tmp; - memset(&tmp, 0, sizeof(tmp)); - tmp.out_value = ones; - tmp.num_bits = scan_size; - scanFields(1, &tmp, TAP_IRSHIFT, pause); - /* update device information */ - buf_cpy(tmp.out_value, tap->cur_instr, scan_size); + assert(scan_size <= 32); + shiftValueInner(TAP_IRSHIFT, pause?TAP_IRPAUSE:TAP_IRSHIFT, scan_size, 0xffffffff); + tap->bypass = 1; } } ----------------------------------------------------------------------- Summary of changes: src/jtag/zy1000/zy1000.c | 12 +++--------- 1 files changed, 3 insertions(+), 9 deletions(-) hooks/post-receive -- Main OpenOCD repository |