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;
|
return ERROR_FAIL;
|
||||||
if (!dm->hasel_supported) {
|
if (!dm->hasel_supported) {
|
||||||
r->prepped = false;
|
r->prepped = false;
|
||||||
dm013_select_target(target);
|
return dm013_select_target(target);
|
||||||
return ERROR_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(dm->hart_count);
|
assert(dm->hart_count);
|
||||||
|
|
Loading…
Reference in New Issue