mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-03-15 19:31:32 +00:00
lib: sbi: Add smepmp in hart extensions
- Add Smepmp as extension in sbi_hart_extensions enum - Return "smepmp" string for Smepmp extension from sbi_hart_extension_id2string Signed-off-by: Himanshu Chauhan <hchauhan@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
parent
6c202c5efd
commit
cbcfc7b10c
2 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,8 @@ enum sbi_hart_priv_versions {
|
|||
enum sbi_hart_extensions {
|
||||
/** HART has AIA M-mode CSRs */
|
||||
SBI_HART_EXT_SMAIA = 0,
|
||||
/** HART has Smepmp */
|
||||
SBI_HART_EXT_SMEPMP,
|
||||
/** HART has Smstateen CSR **/
|
||||
SBI_HART_EXT_SMSTATEEN,
|
||||
/** Hart has Sscofpmt extension */
|
||||
|
|
|
@ -456,6 +456,9 @@ static inline char *sbi_hart_extension_id2string(int ext)
|
|||
case SBI_HART_EXT_ZIHPM:
|
||||
estr = "zihpm";
|
||||
break;
|
||||
case SBI_HART_EXT_SMEPMP:
|
||||
estr = "smepmp";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue