lib: sbi: Enable Zicbo[m|z] extensions in the menvcfg CSR
authorAnup Patel <apatel@ventanamicro.com>
Tue, 29 Mar 2022 14:12:22 +0000 (19:42 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 5 Apr 2022 03:21:40 +0000 (08:51 +0530)
commit47d676570ddb0b50e741e4239d596de4d875e370
treed607a98e1a2c06d64576af46892e2f681c6d00ff
parent31fecad46d1461c3bc6a4ef6d6aa461a19c1d78e
lib: sbi: Enable Zicbo[m|z] extensions in the menvcfg CSR

The bits to configure/enable Zicbo[m|z] extensions in the menvcfg
CSR are WARL. We try to enable these bits irrespective whether
these extensions are available or not because writes to these
bits will be ignored if these extensions are not available.

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