mirror of
https://github.com/riscv-software-src/opensbi
synced 2025-11-06 15:00:26 +00:00
lib: sbi: Add SiFive proprietary xsfcease
Using ISA string "xsfcease" to detect the support of the custom instruction "CEASE". Reviewed-by: Cyan Yang <cyan.yang@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org> Signed-off-by: Nick Hu <nick.hu@sifive.com> Link: https://lore.kernel.org/r/20251020-cache-upstream-v7-6-69a132447d8a@sifive.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
parent
8752c809b3
commit
64904e5d5c
@ -83,6 +83,8 @@ enum sbi_hart_extensions {
|
||||
SBI_HART_EXT_SSSTATEEN,
|
||||
/** Hart has Xsfcflushdlone extension */
|
||||
SBI_HART_EXT_XSIFIVE_CFLUSH_D_L1,
|
||||
/** Hart has Xsfcease extension */
|
||||
SBI_HART_EXT_XSIFIVE_CEASE,
|
||||
|
||||
/** Maximum index of Hart extension */
|
||||
SBI_HART_EXT_MAX,
|
||||
|
||||
@ -716,6 +716,7 @@ const struct sbi_hart_ext_data sbi_hart_ext[] = {
|
||||
__SBI_HART_EXT_DATA(ssctr, SBI_HART_EXT_SSCTR),
|
||||
__SBI_HART_EXT_DATA(ssstateen, SBI_HART_EXT_SSSTATEEN),
|
||||
__SBI_HART_EXT_DATA(xsfcflushdlone, SBI_HART_EXT_XSIFIVE_CFLUSH_D_L1),
|
||||
__SBI_HART_EXT_DATA(xsfcease, SBI_HART_EXT_XSIFIVE_CEASE),
|
||||
};
|
||||
|
||||
_Static_assert(SBI_HART_EXT_MAX == array_size(sbi_hart_ext),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user