summaryrefslogtreecommitdiff
path: root/include/sbi
diff options
context:
space:
mode:
authorHimanshu Chauhan <[email protected]>2023-07-12 10:04:30 +0530
committerAnup Patel <[email protected]>2023-07-13 12:12:16 +0530
commitcbcfc7b10c3a99349f184647c73448b0cb8482df (patch)
tree1f2ad91a804c21da434eaf89690044cb06c30814 /include/sbi
parent6c202c5efda59d9bbc00b52f3664ebdc2e442f9a (diff)
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 <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include/sbi')
-rw-r--r--include/sbi/sbi_hart.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h
index b97f78cd..8b0e8968 100644
--- a/include/sbi/sbi_hart.h
+++ b/include/sbi/sbi_hart.h
@@ -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 */