[PATCH 0/5] PMP and HPM improvements

Anup Patel anup.patel at wdc.com
Sat Aug 22 01:13:05 EDT 2020


This series:
1. Improves PMP CSR detections as-per latest RISC-V spec
2. Adds MHPM counter detection at boot-time
3. Improves HPM counter read/write emulation as-per latest RISC-V spec

These patches are also available in pmp_hpm_imp_v1 branch at
https://github.com/avpatel/opensbi.git

Anup Patel (5):
  lib: sbi: Remove redundant SBI_HART_HAS_PMP feature
  lib: sbi: Improve PMP CSR detection and progamming
  lib: sbi: Detect and print MHPM counters at boot-time
  include: sbi: Few cosmetic changes in riscv_encoding.h
  lib: sbi: Improve HPM CSR read/write emulation

 include/sbi/riscv_encoding.h |  71 ++++++++++++-
 include/sbi/sbi_hart.h       |   9 +-
 lib/sbi/riscv_asm.c          | 186 +++++++++++++----------------------
 lib/sbi/sbi_emulate_csr.c    | 147 +++++++++++++--------------
 lib/sbi/sbi_hart.c           | 106 ++++++++++++--------
 lib/sbi/sbi_init.c           |   1 +
 lib/utils/fdt/fdt_fixup.c    |   2 +-
 7 files changed, 282 insertions(+), 240 deletions(-)

-- 
2.25.1




More information about the opensbi mailing list