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:Atish Patra <atish.patra@wdc.com> Tested-by:
Jonathan Balkind <jbalkind@cs.princeton.edu> Reviewed-by:
Anup Patel <anup.patel@wdc.com>
parent
63a513ed
Please register or sign in to comment