Merge pull request #97 from riscv/keepalive
Add some keep_alive()s for use with slow targets.macbuild
commit
48cda64282
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue