lib: sbi: Enable Svpbmt extension in the menvcfg CSR
authorAnup Patel <apatel@ventanamicro.com>
Tue, 29 Mar 2022 14:25:23 +0000 (19:55 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 5 Apr 2022 03:23:11 +0000 (08:53 +0530)
commit794986f87fb811ed0c5117fa7d3c84849e9b81d5
treeafbd60f6e4686d1a4c7452a72d69f2c3b7755cc3
parent47d676570ddb0b50e741e4239d596de4d875e370
lib: sbi: Enable Svpbmt extension in the menvcfg CSR

The menvcfg.PBMTE bit is read-only zero when Svpbmt extension is not
available so we try to enable menvcfg.PBMTE bit irrespective whether
Svpbmt is available or not.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Xiang W <wxjstz@126.com>
lib/sbi/sbi_hart.c