diff --git a/sys/conf/Makefile.riscv b/sys/conf/Makefile.riscv index 00746104eb3a..183fa6dd4482 100644 --- a/sys/conf/Makefile.riscv +++ b/sys/conf/Makefile.riscv @@ -19,7 +19,7 @@ # # Which version of config(8) is required. -%VERSREQ= 600017 +%VERSREQ= 600012 .if !defined(S) S= ../../.. diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 9180b31c5206..23c98de879b7 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -150,11 +150,7 @@ INLINE_LIMIT?= 8000 # code model as "medium" and "medany" respectively. # .if ${MACHINE_CPUARCH} == "riscv" -.if ${MACHINE_ARCH:Mriscv*sf} -CFLAGS+= -march=rv64imac -.else CFLAGS+= -march=rv64imafdc -.endif CFLAGS+= -mabi=lp64 CFLAGS.clang+= -mcmodel=medium CFLAGS.gcc+= -mcmodel=medany diff --git a/sys/riscv/conf/GENERICSF b/sys/riscv/conf/GENERICSF deleted file mode 100644 index 683e48bcf7aa..000000000000 --- a/sys/riscv/conf/GENERICSF +++ /dev/null @@ -1,9 +0,0 @@ -# $FreeBSD$ - -# Just like generic, but with a riscv64sf MACHINE_ARCH. Override machine set in -# DEFAULTS. -machine riscv riscv64sf - -include "GENERIC" -ident GENERICSF -nooptions FPE # for systems without FPE