aboutsummaryrefslogtreecommitdiff
path: root/include/sbi/riscv_encoding.h
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2021-11-08 10:52:58 -0800
committerAnup Patel <anup@brainfault.org>2021-11-11 17:42:59 +0530
commit867c65360df283f056afa963ad8333e9c1eb21bb (patch)
tree9757f8fb87e66a09d195ec18bc57e44882db94ed /include/sbi/riscv_encoding.h
parent7084ad9f4281eecd7a7f66cecfd7d9cff8d452ad (diff)
lib: sbi: Detect Sscofpmf extension at run time
Sscofpmf ISA extension introduces PMU counter overflow and filtering support. It introduces a read only `scountovf` csr that can be used to detect if a hart supports this extension at runtime. However, this feature is only useful if the hart already supports mcounteren and mcountinhibit. Add a dynamic detection mechanism and boot time print message if sscofpmf is present. Reviewed-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi/riscv_encoding.h')
0 files changed, 0 insertions, 0 deletions