[PATCH v2 0/5] PMP and HPM improvements
Anup Patel
anup.patel at wdc.com
Mon Aug 24 09:52:38 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_v2 branch at
https://github.com/avpatel/opensbi.git
Changes since v1:
- Organized CSR defines in PATCH4 same as RISC-V privilege spec
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 | 295 ++++++++++++++++++++++++-----------
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, 420 insertions(+), 326 deletions(-)
--
2.25.1
More information about the opensbi
mailing list