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

lib: Add csr detect support



As RISC-V ISA allows many CSRs such as pmp, s/mcounteren to be optional
in hardware, OpenSBI should provide an option to dynamically detect
these csr access capability at run time.

Implement a csr read/write access check helper macros.

Signed-off-by: default avatarAtish Patra <atish.patra@wdc.com>
Tested-by: default avatarJonathan Balkind <jbalkind@cs.princeton.edu>
Reviewed-by: default avatarAnup Patel <anup.patel@wdc.com>
parent 63a513ed
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