summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorAtish Patra <[email protected]>2021-07-10 09:18:03 -0700
committerAnup Patel <[email protected]>2021-07-11 10:11:10 +0530
commitfde28fadc2603c7c7a4afa7c2e7b96cc7b11d2e2 (patch)
tree5b473fe4342a31d47ba988d93c8730409e28a993 /lib/utils
parent3e8b31aca988955800d15329f1d4e48b4fbe7233 (diff)
lib: sbi: Detect mcountinihibit support at runtime
RISC-V ISA specification v1.11 defined mcountinhibit CSR that allows software to stop any counter from incrementing. The SBI PMU extension depends on this CSR support in hardware. Define mcountinhibit as a hart specific feature and detect it at runtime. Reviewed-by: Anup Patel <[email protected]> Signed-off-by: Atish Patra <[email protected]>
Diffstat (limited to 'lib/utils')
0 files changed, 0 insertions, 0 deletions