lib: sbi: Add Zihpm as a HART ISA extension

Recently ratified Zihpm ISA extension covers all [m]hpm* CSRs
so we add Zihpm as a HART ISA extension in OpenSBI.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Xiang W <wxjstz@126.com>
This commit is contained in:
Anup Patel
2023-07-05 12:15:56 +05:30
committed by Anup Patel
parent 1a398d9faa
commit 669089c5f2
2 changed files with 10 additions and 0 deletions

View File

@@ -36,6 +36,8 @@ enum sbi_hart_extensions {
SBI_HART_EXT_SMSTATEEN,
/** HART has Sstc extension */
SBI_HART_EXT_SSTC,
/** HART has Zihpm extension */
SBI_HART_EXT_ZIHPM,
/** Maximum index of Hart extension */
SBI_HART_EXT_MAX,