From: Øyvind H. <go...@us...> - 2010-03-22 08:29:35
|
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 721502f1d3a0d506bc0e814926368fbedda60028 (commit) from 4be9eded7f723af8fe755b1ef62469e87d1003bc (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 721502f1d3a0d506bc0e814926368fbedda60028 Author: Ãyvind Harboe <oyv...@zy...> Date: Mon Mar 22 08:27:03 2010 +0100 zy1000: fix optimisaion bug in dcc writes Introduced & corrected since 0.4. Signed-off-by: Ãyvind Harboe <oyv...@zy...> diff --git a/src/jtag/zy1000/zy1000.c b/src/jtag/zy1000/zy1000.c index 6f75e59..b8abc89 100644 --- a/src/jtag/zy1000/zy1000.c +++ b/src/jtag/zy1000/zy1000.c @@ -828,23 +828,17 @@ void embeddedice_write_dcc(struct jtag_tap *tap, int reg_addr, uint8_t *buffer, } } else { - tap_state_t end_state = TAP_IDLE; - tap_state_t shift_end_state = TAP_DRSHIFT; - if (post_bits == 0) - shift_end_state = end_state; - shiftValueInner(TAP_DRSHIFT, TAP_DRSHIFT, pre_bits, 0); int i; for (i = 0; i < count - 1; i++) { /* Fewer pokes means we get to use the FIFO more efficiently */ shiftValueInner(TAP_DRSHIFT, TAP_DRSHIFT, 32, fast_target_buffer_get_u32(buffer, little)); - shiftValueInner(TAP_DRSHIFT, shift_end_state, 6 + post_bits + pre_bits, (reg_addr | (1 << 5))); + shiftValueInner(TAP_DRSHIFT, TAP_IDLE, 6 + post_bits + pre_bits, (reg_addr | (1 << 5))); buffer += 4; } shiftValueInner(TAP_DRSHIFT, TAP_DRSHIFT, 32, fast_target_buffer_get_u32(buffer, little)); - shiftValueInner(TAP_DRSHIFT, shift_end_state, 6, reg_addr | (1 << 5)); - shiftValueInner(shift_end_state, end_state, post_bits, 0); + shiftValueInner(TAP_DRSHIFT, TAP_IDLE, 6 + post_bits, (reg_addr | (1 << 5))); } } ----------------------------------------------------------------------- Summary of changes: src/jtag/zy1000/zy1000.c | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) hooks/post-receive -- Main OpenOCD repository |