Skip to content
Commit 867c6536 authored by Atish Patra's avatar Atish Patra Committed by Anup Patel
Browse files

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: default avatarAnup Patel <anup.patel@wdc.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
Signed-off-by: default avatarAtish Patra <atish.patra@wdc.com>
parent 7084ad9f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment