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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user