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:
Atish Patra <atish.patra@wdc.com>
parent
bc545539
Please register or sign in to comment