target/riscv: Error when hart becomes unavailable during resume
Change-Id: I731e6178b2b08b65206614b0dc2a0d993c149cc3 Signed-off-by: Tim Newsome <tim@sifive.com>
This commit is contained in:
parent
cc5e78172a
commit
5a48975118
|
@ -4856,6 +4856,8 @@ static int riscv013_step_or_resume_current_hart(struct target *target,
|
|||
usleep(10);
|
||||
if (dmstatus_read(target, &dmstatus, true) != ERROR_OK)
|
||||
return ERROR_FAIL;
|
||||
if (get_field(dmstatus, DM_DMSTATUS_ALLUNAVAIL))
|
||||
return ERROR_FAIL;
|
||||
if (get_field(dmstatus, DM_DMSTATUS_ALLRESUMEACK) == 0)
|
||||
continue;
|
||||
if (step && get_field(dmstatus, DM_DMSTATUS_ALLHALTED) == 0)
|
||||
|
|
Loading…
Reference in New Issue