Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
target/riscv: Don't assert in riscv013_get_register()
When the target isn't halted, simply return an error. This used to be purely internal code so an assert was appropriate. Now after some refactoring and with unavailable harts you could get here when the hart is unavailable. In that case the right thing is simply to return an error message. Change-Id: I49d26a11fe7565c645fd2480e89a2c35ea9b1688 Signed-off-by: Tim Newsome <[email protected]>
- Loading branch information