lib: sbi: Add support for Svade and Svadu extensions
authorYong-Xuan Wang <yongxuan.wang@sifive.com>
Wed, 5 Jun 2024 12:11:09 +0000 (20:11 +0800)
committerAnup Patel <anup@brainfault.org>
Tue, 18 Jun 2024 11:11:32 +0000 (16:41 +0530)
commit53844c98d082cbba29a6e568196add6de95e858f
tree4cfc22e482ed4f7f665cf906ff4f960cde7d6f47
parent52dcf351cddf12081acc921c135df265f9d2f243
lib: sbi: Add support for Svade and Svadu extensions

Add support for Svade and Svadu extensions. When both are present in the
device tree, the M-mode firmware should select the Svade extension
to comply with the RVA23 profile, which mandates Svade and lists Svadu as
an optional extension.

Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/riscv_encoding.h
include/sbi/sbi_hart.h
lib/sbi/sbi_hart.c