lib: sbi: Remove MENVCFG hart feature

If a hart implements privileged spec v1.12 (or higher) then we can
safely assume that menvcfg CSR is present and we don't need MENVCFG
as a hart feature.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
This commit is contained in:
Anup Patel
2022-04-28 19:18:17 +05:30
committed by Anup Patel
parent dbc3d8f0ef
commit 97a17c2e5c
2 changed files with 14 additions and 24 deletions

View File

@@ -32,12 +32,10 @@ enum sbi_hart_features {
SBI_HART_HAS_TIME = (1 << 1),
/** HART has AIA local interrupt CSRs */
SBI_HART_HAS_AIA = (1 << 2),
/** HART has menvcfg CSR */
SBI_HART_HAS_MENVCFG = (1 << 3),
/** HART has mstateen CSR **/
SBI_HART_HAS_SMSTATEEN = (1 << 4),
SBI_HART_HAS_SMSTATEEN = (1 << 3),
/** HART has SSTC extension implemented in hardware */
SBI_HART_HAS_SSTC = (1 << 5),
SBI_HART_HAS_SSTC = (1 << 4),
/** Last index of Hart features*/
SBI_HART_HAS_LAST_FEATURE = SBI_HART_HAS_SSTC,