Benedikt Freisen and Anup Patel
afc24152bb
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 >
2025-12-15 18:42:00 +05:30
Benedikt Freisen and Anup Patel
dffa24b7f5
include: sbi: Fix tab alignment.
...
A previous editor or formatter script appears to have been confused by a
diff view, where the prepended + or - changes the way tabs are displayed.
Since it is the file itself that matters, adjust that accordingly.
Signed-off-by: Benedikt Freisen <b.freisen@gmx.net >
Reviewed-by: Anup Patel <anup@brainfault.org >
Link: https://lore.kernel.org/r/20251114203842.13396-4-b.freisen@gmx.net
Signed-off-by: Anup Patel <anup@brainfault.org >
2025-12-15 18:42:00 +05:30
Benedikt Freisen and Anup Patel
6a20872c91
Makefile: sensible default value for OPENSBI_CC_XLEN.
...
If guessing the compiler's XLEN fails, use 64 rather than garbage.
The previous behavior could silently break e.g. OPENSBI_CC_SUPPORT_VECTOR
when cross-compiling with a system's native clang.
Signed-off-by: Benedikt Freisen <b.freisen@gmx.net >
Reviewed-by: Anup Patel <anup@brainfault.org >
Link: https://lore.kernel.org/r/20251114203842.13396-3-b.freisen@gmx.net
Signed-off-by: Anup Patel <anup@brainfault.org >
2025-12-15 18:42:00 +05:30
Benedikt Freisen and Anup Patel
d65c1e95a7
include: sbi: Make "s8" actually signed.
...
Since plain "char" is implicitly unsigned on RISC-V, "s8" should be an alias for "signed char".
Signed-off-by: Benedikt Freisen <b.freisen@gmx.net >
Reviewed-by: Radim Krčmář <rkrcmar@ventanamicro.com >
Reviewed-by: Anup Patel <anup@brainfault.org >
Link: https://lore.kernel.org/r/20251114203842.13396-2-b.freisen@gmx.net
Signed-off-by: Anup Patel <anup@brainfault.org >
2025-12-15 18:42:00 +05:30