diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2026-01-31 17:10:56 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2026-01-31 17:10:56 +0000 |
| commit | 31b259049e2b932ae6527d1dc850c2bec58e94e0 (patch) | |
| tree | 509d5263f6a692a0c031155bfc3c720a1507b596 | |
| parent | fe45651224bea513c7db88abbc53bd1241ab442f (diff) | |
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
| -rw-r--r-- | sys/conf/kern.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index e86ffb684f9a..af7b1589c5cd 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=medany |
