riscv: Enable the zifencei extension explicitly in -march

clang is more tolerant and implies this extension whereas GCC is
stricter and requires it to be included.

Reviewed by:	mhorne
Differential Revision:	https://reviews.freebsd.org/D54965
This commit is contained in:
John Baldwin
2026-01-31 12:10:56 -05:00
parent fe45651224
commit 31b259049e
+1 -1
View File
@@ -166,7 +166,7 @@ INLINE_LIMIT?= 8000
# code model as "medium" and "medany" respectively.
#
.if ${MACHINE_CPUARCH} == "riscv"
CFLAGS+= -march=rv64imafdch
CFLAGS+= -march=rv64imafdch_zifencei
CFLAGS+= -mabi=lp64
CFLAGS.clang+= -mcmodel=medium
CFLAGS.gcc+= -mcmodel=medany