diff options
| author | Yu Chien Peter Lin <[email protected]> | 2023-11-30 20:42:01 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-12-06 17:27:22 +0530 |
| commit | 090fa99d7cf519a8b7d2685ae9f84a2fbe46b083 (patch) | |
| tree | d5f126141bb50025dc1fee01a50c3b26d25909b5 | |
| parent | 291403f6f29dd119d94ac99303c94dadcb5496c3 (diff) | |
lib: sbi: Add XAndesPMU in hart extensions
Add the custom extension to hart extension list.
Signed-off-by: Yu Chien Peter Lin <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Reviewed-by: Lad Prabhakar <[email protected]>
Tested-by: Lad Prabhakar <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
| -rw-r--r-- | include/sbi/sbi_hart.h | 2 | ||||
| -rw-r--r-- | lib/sbi/sbi_hart.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h index 6ee49ffc..811e5f50 100644 --- a/include/sbi/sbi_hart.h +++ b/include/sbi/sbi_hart.h @@ -45,6 +45,8 @@ enum sbi_hart_extensions { SBI_HART_EXT_ZKR, /** Hart has Smcntrpmf extension */ SBI_HART_EXT_SMCNTRPMF, + /** Hart has Xandespmu extension */ + SBI_HART_EXT_XANDESPMU, /** Maximum index of Hart extension */ SBI_HART_EXT_MAX, diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c index bf8792af..c9483738 100644 --- a/lib/sbi/sbi_hart.c +++ b/lib/sbi/sbi_hart.c @@ -694,6 +694,9 @@ static inline char *sbi_hart_extension_id2string(int ext) case SBI_HART_EXT_SMCNTRPMF: estr = "smcntrpmf"; break; + case SBI_HART_EXT_XANDESPMU: + estr = "xandespmu"; + break; default: break; } |
