Merge pull request #97 from riscv/keepalive

Add some keep_alive()s for use with slow targets.
This commit is contained in:
Tim Newsome
2017-08-30 12:14:23 -07:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -49,6 +49,8 @@ void riscv_batch_run(struct riscv_batch *batch)
return;
}
keep_alive();
LOG_DEBUG("running a batch of %ld scans", (long)batch->used_scans);
riscv_batch_add_nop(batch);
+2
View File
@@ -41,6 +41,8 @@ int riscv_program_init(struct riscv_program *p, struct target *target)
int riscv_program_exec(struct riscv_program *p, struct target *t)
{
keep_alive();
if (riscv_debug_buffer_leave(t, p) != ERROR_OK) {
LOG_ERROR("unable to write program buffer exit code");
return ERROR_FAIL;