Commit 023aa6bb authored by Atish Patra's avatar Atish Patra Committed by Anup Patel
Browse files

lib: Do not access mi/edeleg register if S mode is not present.



As per the RISC-V ISA, mideleg and medeleg registers should not exist
if S-mode is not present for a hart.

We shouldn't access these CSRs if non S-mode harts.

Signed-off-by: default avatarAtish Patra <atish.patra@wdc.com>
parent bc545539
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment