diff options
| author | Atish Patra <[email protected]> | 2021-07-10 09:18:05 -0700 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2021-07-11 10:13:04 +0530 |
| commit | 0829f2bc284c07576a0dc9a569beea2a2d68dc3d (patch) | |
| tree | e8356644ff35aad82bcca04a0cce4d6dd91f0e76 /lib/utils | |
| parent | d3a96cc46989783c2fbb47e11349dbd5d652938d (diff) | |
lib: sbi: Detect number of bits implemented in mhpmcounter
RISC-V privilege specification allows the implementation to have less
than 64 bits.
Add a function to detect the number of implemented bits in mhpmcounter
dynamically at runtime.
Reviewed-by: Xiang W <[email protected]>
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
