Merge pull request #248 from riscv/fix_011

Don't error if hart select isn't implemented.
This commit is contained in:
Megan Wachs 2018-05-08 09:25:31 -07:00 committed by GitHub
commit 06e6c2297f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1706,7 +1706,7 @@ int riscv_set_current_hartid(struct target *target, int hartid)
{ {
RISCV_INFO(r); RISCV_INFO(r);
if (!r->select_current_hart) if (!r->select_current_hart)
return ERROR_FAIL; return ERROR_OK;
int previous_hartid = riscv_current_hartid(target); int previous_hartid = riscv_current_hartid(target);
r->current_hartid = hartid; r->current_hartid = hartid;