Merge pull request #841 from aap-sc/aap-sc/error_handling_fixup
target/riscv: respect error code from dm013_select_target in select_prepped_harts
This commit is contained in:
commit
70380dda80
|
@ -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