[PATCH 00/11] HART Feature Improvements

Xiang W wxjstz at 126.com
Thu May 5 09:30:19 PDT 2022


在 2022-04-29星期五的 21:21 +0530,Anup Patel写道:
> This series does following improvements to OpenSBI hart features:
> 1) Add per-HART priv spec version

Detecting the privileged spec version by CSR is not friendly to some
non-standard implementations. I recommend defining the privileged spec
version via a macro in the platform code's header file

Regards,
Xiang

> 2) Remove redundant per-HART features
> 3) Convert HART features into HART extensions
> 4) Platform callback to populate HART extensions
> 
> These patches can also be found in the hart_feat_v1 brach at:
> https://github.com/avpatel/opensbi.git
> 
> Anup Patel (11):
>   lib: sbi: Detect and print privileged spec version

>   lib: sbi: Remove 's' and 'u' from misa_string() output
>   lib: sbi: Update the name of ISA string printed at boot time
>   lib: sbi: Remove MCOUNTEREN and SCOUNTEREN hart features
>   lib: sbi: Remove MCOUNTINHIBT hart feature
>   lib: sbi: Remove MENVCFG hart feature
>   lib: sbi: Fix AIA feature detection
>   lib: sbi: Convert hart features into hart extensions
>   lib: sbi: Detect hart features only once for each hart
>   lib: sbi: Add sbi_hart_update_extension() function
>   lib: sbi_platform: Add callback to populate HART extensions
> 
>  include/sbi/sbi_hart.h     |  61 ++++----
>  include/sbi/sbi_platform.h |  18 +++
>  lib/sbi/riscv_asm.c        |   2 +-
>  lib/sbi/sbi_emulate_csr.c  |   4 +-
>  lib/sbi/sbi_hart.c         | 288 +++++++++++++++++++++----------------
>  lib/sbi/sbi_init.c         |   8 +-
>  lib/sbi/sbi_pmu.c          |  19 +--
>  lib/sbi/sbi_timer.c        |   6 +-
>  lib/sbi/sbi_trap.c         |   4 +-
>  lib/utils/fdt/fdt_pmu.c    |   2 +-
>  10 files changed, 246 insertions(+), 166 deletions(-)
> 
> -- 
> 2.34.1
> 
> 





More information about the opensbi mailing list