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:
Tim Newsome 2023-04-27 09:04:41 -07:00 committed by GitHub
commit 70380dda80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);