Date: Fri, 24 Apr 2026 15:29:24 +0000 From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 91cdb8f0c1c4 - stable/15 - riscv: Enable the zifencei extension explicitly in -march Message-ID: <69eb8c54.35eec.5ff2ed7@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=91cdb8f0c1c40563344969d969b7505c32c980b6 commit 91cdb8f0c1c40563344969d969b7505c32c980b6 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2026-01-31 17:10:56 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2026-04-24 15:26:39 +0000 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 (cherry picked from commit 31b259049e2b932ae6527d1dc850c2bec58e94e0) --- sys/conf/kern.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 31036c4080a1..958203c3dedd 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -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=medanyhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69eb8c54.35eec.5ff2ed7>
