target/riscv: respect error code from dm013_select_target in select_prepped_harts
Change-Id: I3099589521538590e366d60629e49cfc74e2d0c6 Signed-off-by: Parshintsev Anatoly <anatoly.parshintsev@syntacore.com>
This commit is contained in:
parent
4d274298b2
commit
7ca8350d3a
|
@ -4228,8 +4228,7 @@ static int select_prepped_harts(struct target *target)
|
|||
return ERROR_FAIL;
|
||||
if (!dm->hasel_supported) {
|
||||
r->prepped = false;
|
||||
dm013_select_target(target);
|
||||
return ERROR_OK;
|
||||
return dm013_select_target(target);
|
||||
}
|
||||
|
||||
assert(dm->hart_count);
|
||||
|
|
Loading…
Reference in New Issue