Commit 29ecda9c authored by Yu Chien Peter Lin's avatar Yu Chien Peter Lin Committed by Anup Patel
Browse files

sbi: sbi_domain_context: Check privilege spec version before accessing S-mode CSRs



SCOUNTEREN and SENVCFG may not be supported on certain RISC-V core,
so check the existence of these CSRs via privilege spec version to
prevent illegal instructions.

Signed-off-by: default avatarYu Chien Peter Lin <peterlin@andestech.com>
Signed-off-by: default avatarAlvin Chang <alvinga@andestech.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 7862c244
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