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:
Parshintsev Anatoly 2023-04-24 21:14:09 +03:00
parent 4d274298b2
commit 7ca8350d3a
1 changed files with 1 additions and 2 deletions

View File

@ -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);