mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-12-16 12:11:32 +00:00
include: sbi: Ignore rs1 and rd fields in FENCE.TSO.
While FENCE.TSO is only specified with them set to zero, it is a special case of FENCE, which needs to ignore these otherwise reserved fields, but in some implementations, namely XuanTie C906 and C910, apparently does not. See the RISCVuzz paper by Thomas et al. for details. Signed-off-by: Benedikt Freisen <b.freisen@gmx.net> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20251114203842.13396-5-b.freisen@gmx.net Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
committed by
Anup Patel
parent
dffa24b7f5
commit
afc24152bb
@@ -949,7 +949,7 @@
|
|||||||
#define INSN_MASK_WFI 0xffffff00
|
#define INSN_MASK_WFI 0xffffff00
|
||||||
#define INSN_MATCH_WFI 0x10500000
|
#define INSN_MATCH_WFI 0x10500000
|
||||||
|
|
||||||
#define INSN_MASK_FENCE_TSO 0xffffffff
|
#define INSN_MASK_FENCE_TSO 0xfff0707f
|
||||||
#define INSN_MATCH_FENCE_TSO 0x8330000f
|
#define INSN_MATCH_FENCE_TSO 0x8330000f
|
||||||
|
|
||||||
#define INSN_MASK_VECTOR_UNIT_STRIDE 0xfdf0707f
|
#define INSN_MASK_VECTOR_UNIT_STRIDE 0xfdf0707f
|
||||||
|
|||||||
Reference in New Issue
Block a user