[PATCH 0/1] sbi: Add support for smcntrpmf
Kaiwen Xue
kaiwenx at rivosinc.com
Thu Jul 20 14:07:01 PDT 2023
This patch adds support for ISA extension smcntrpmf, cycle and instret
privilege mode filtering [1]. It is supposed to work together with the QEMU
support [2].
[1] https://github.com/riscv/riscv-smcntrpmf
[2] https://github.com/rivosinc/qemu/tree/dev/kaiwenx/smcntrpmf_upstream
Kaiwen Xue (1):
lib: sbi: Add support for smcntrpmf
include/sbi/riscv_encoding.h | 4 ++++
include/sbi/sbi_hart.h | 2 ++
lib/sbi/riscv_asm.c | 12 +++++++++++
lib/sbi/sbi_hart.c | 11 ++++++++++
lib/sbi/sbi_pmu.c | 42 ++++++++++++++++++++++++++++++++++--
5 files changed, 69 insertions(+), 2 deletions(-)
--
2.41.0
More information about the opensbi
mailing list