summaryrefslogtreecommitdiff
path: root/lib/utils/cppc/objects.mk
diff options
context:
space:
mode:
authorYao Zi <[email protected]>2025-05-16 13:33:52 +0000
committerAnup Patel <[email protected]>2025-05-20 13:25:53 +0530
commit7e31dc80525f752d97c2c5a97eb4b9583054e8bc (patch)
treea04b28f15cf9b349459c50509549ca2da6fad906 /lib/utils/cppc/objects.mk
parent2bb76326496440996b44bf20f3ceab127c7f72ae (diff)
lib: sbi: hart: Detect existence of cycle and instret CSRs for Zicntr
Zicntr extension specifies three read-only CSRs, time, cycle and instret. It isn't sufficient to report Zicntr is fully supported with only time CSR detected. This patch introduces a bitmap to sbi_hart_features to record availability of these CSRs, which are detected using traps. Zicntr is reported as present if and only if three CSRs are all available on the HARTs. Sites originally depending on SBI_HART_EXT_ZICNTR for detecting existence of time CSR are switched to detect SBI_HART_CSR_TIME instead. Suggested-by: Anup Patel <[email protected]> Signed-off-by: Yao Zi <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/cppc/objects.mk')
0 files changed, 0 insertions, 0 deletions