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

lib: sbi: Add support for smcsrind and smcdeleg



Smcsrind allows generic indirect CSR access mechanism while
Smcdeleg allows delegating hpmcounters in Supervisor mode.

Enable both extensions and set the appropriate bits in mstateen
and menvcfg.

Co-developed-by: default avatarKaiwen Xue <kaiwenxue1@gmail.com>
Signed-off-by: default avatarAtish Patra <atishp@rivosinc.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent 322b5984
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