aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrasko DRASKOVIC <drasko.draskovic@gmail.com>2011-07-05 17:37:05 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-08-09 23:17:28 +0200
commite1466df54d8ddd6800f8df2f9e0d2f1dd646cb20 (patch)
treed4119385a0b299d36289f55ae6c7e598f643d9dc
parent194e3c5bc5e0fbb7d41cfcbe913c4264782cdd5b (diff)
mips32: Removed Unnecessary JTAG Queue Flush
jtag_execute_queue() is executed as a part of mips_ejtag_drscan_32(). No need for this to be done before - removed for optimisation.
-rw-r--r--src/target/mips32_pracc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/target/mips32_pracc.c b/src/target/mips32_pracc.c
index af60d321..cb8665c3 100644
--- a/src/target/mips32_pracc.c
+++ b/src/target/mips32_pracc.c
@@ -115,18 +115,12 @@ static int wait_for_pracc_rw(struct mips_ejtag *ejtag_info, uint32_t *ctrl)
uint32_t ejtag_ctrl;
long long then = timeval_ms();
int timeout;
+ int retval;
/* wait for the PrAcc to become "1" */
mips_ejtag_set_instr(ejtag_info, EJTAG_INST_CONTROL);
ejtag_ctrl = ejtag_info->ejtag_ctrl;
- int retval;
- if ((retval = jtag_execute_queue()) != ERROR_OK)
- {
- LOG_ERROR("fastdata load failed");
- return retval;
- }
-
while (1)
{
retval = mips_ejtag_drscan_32(ejtag_info, &ejtag_ctrl);