summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2022-04-28 16:48:17 +0300
committerAnup Patel <anup@brainfault.org>2022-05-07 07:36:19 +0300
commit97a17c2e5c38b0813bb4ab171cef893addf89cfe (patch)
treeef693ac9927b8130c1b7bcc62e03ca8fb255dbc7 /include
parentdbc3d8f0ef19563a89aea266e032acbab549f7fe (diff)
downloadopensbi-97a17c2e5c38b0813bb4ab171cef893addf89cfe.tar.xz
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>
Diffstat (limited to 'include')
-rw-r--r--include/sbi/sbi_hart.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h
index bc6b766..c985674 100644
--- a/include/sbi/sbi_hart.h
+++ b/include/sbi/sbi_hart.h
@@ -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,