Don't error if hart select isn't implemented.

It's not implemented for 0.11 because we don't need it. Returning error
caused 0.11 targets to not be debuggable since change
848062d0d1.

Change-Id: I8b04a1fcf3c3e8bf8340cbf39aaf475d2a213519
This commit is contained in:
Tim Newsome 2018-05-07 15:15:40 -07:00
parent ddc64f45fb
commit 2a103bae44
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);
if (!r->select_current_hart)
return ERROR_FAIL;
return ERROR_OK;
int previous_hartid = riscv_current_hartid(target);
r->current_hartid = hartid;