diff options
| author | Yong-Xuan Wang <[email protected]> | 2023-12-12 08:58:33 +0000 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-12-19 13:54:33 +0530 |
| commit | 056fe6f85dc6b68783f56cb6ea7394e857ab8cc3 (patch) | |
| tree | 2ec3b6b41c977c1a428b79ea6dfb74c789d40451 /include/sbi | |
| parent | 2c8be566f3ecb829d36f50bc7ded1dc084f2fcc3 (diff) | |
lib: sbi: Refactor the code for enable extensions in menvfg CSR
Use 1 variable to store the value of menvcfg.
Signed-off-by: Yong-Xuan Wang <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include/sbi')
| -rw-r--r-- | include/sbi/riscv_encoding.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/sbi/riscv_encoding.h b/include/sbi/riscv_encoding.h index 0996d649..f20df761 100644 --- a/include/sbi/riscv_encoding.h +++ b/include/sbi/riscv_encoding.h @@ -207,13 +207,8 @@ #define MHPMEVENT_SSCOF_MASK _ULL(0xFFFF000000000000) -#if __riscv_xlen > 32 #define ENVCFG_STCE (_ULL(1) << 63) #define ENVCFG_PBMTE (_ULL(1) << 62) -#else -#define ENVCFGH_STCE (_UL(1) << 31) -#define ENVCFGH_PBMTE (_UL(1) << 30) -#endif #define ENVCFG_CBZE (_UL(1) << 7) #define ENVCFG_CBCFE (_UL(1) << 6) #define ENVCFG_CBIE_SHIFT 4 |
