Add some keep_alive()s for use with slow targets.

This commit is contained in:
Tim Newsome 2017-08-15 13:31:06 -07:00
parent 45f28081e1
commit 5092f96105
2 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,8 @@ bool riscv_batch_full(struct riscv_batch *batch)
void riscv_batch_run(struct riscv_batch *batch)
{
keep_alive();
LOG_DEBUG("running a batch of %ld scans", (long)batch->used_scans);
riscv_batch_add_nop(batch);

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;