mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Support mips[*]hf variants in config files
Recognize new MACHINE_ARCH names now as we have added hardfloat support. Switch JZ4780 to mipselhf and remove all uses of TARGET_ARCH in kernel .mk files. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D8989
This commit is contained in:
parent
0ea682eb8e
commit
f369aff32d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=310794
@ -52,7 +52,7 @@ kern/kern_clocksource.c standard
|
||||
kern/link_elf_obj.c standard
|
||||
kern/subr_busdma_bufalloc.c standard
|
||||
kern/subr_dummy_vdso_tc.c standard
|
||||
kern/subr_sfbuf.c optional mips | mipsel | mipsn32
|
||||
kern/subr_sfbuf.c standard
|
||||
|
||||
# gcc/clang runtime
|
||||
libkern/ffsl.c standard
|
||||
@ -61,8 +61,8 @@ libkern/fls.c standard
|
||||
libkern/flsl.c standard
|
||||
libkern/flsll.c standard
|
||||
libkern/memmove.c standard
|
||||
libkern/cmpdi2.c optional mips | mipsel
|
||||
libkern/ucmpdi2.c optional mips | mipsel
|
||||
libkern/cmpdi2.c optional mips | mipshf | mipsel | mipselhf
|
||||
libkern/ucmpdi2.c optional mips | mipshf | mipsel | mipselhf
|
||||
libkern/ashldi3.c standard
|
||||
libkern/ashrdi3.c standard
|
||||
|
||||
|
@ -184,7 +184,7 @@ CFLAGS.gcc+= -mcall-aixdesc
|
||||
.if ${MACHINE_CPUARCH} == "mips"
|
||||
CFLAGS+= -msoft-float
|
||||
INLINE_LIMIT?= 8000
|
||||
.if ${TARGET_ARCH:Mmips*hf} != ""
|
||||
.if ${MACHINE_ARCH:Mmips*hf} != ""
|
||||
CFLAGS+= -DCPU_HAVEFPU
|
||||
.endif
|
||||
.endif
|
||||
|
@ -74,7 +74,7 @@ CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.
|
||||
CFLAGS_PARAM_INLINE_UNIT_GROWTH?=100
|
||||
CFLAGS_PARAM_LARGE_FUNCTION_GROWTH?=1000
|
||||
.if ${MACHINE_CPUARCH} == "mips"
|
||||
CFLAGS_ARCH_PARAMS?=--param max-inline-insns-single=1000 -DMACHINE_ARCH='"${TARGET_ARCH}"'
|
||||
CFLAGS_ARCH_PARAMS?=--param max-inline-insns-single=1000 -DMACHINE_ARCH='"${MACHINE_ARCH}"'
|
||||
.endif
|
||||
CFLAGS.gcc+= -fno-common -fms-extensions -finline-limit=${INLINE_LIMIT}
|
||||
CFLAGS.gcc+= --param inline-unit-growth=${CFLAGS_PARAM_INLINE_UNIT_GROWTH}
|
||||
|
@ -50,9 +50,13 @@ CPU_MALTA opt_global.h
|
||||
|
||||
# which MACHINE_ARCH architecture
|
||||
MIPS
|
||||
MIPSHF
|
||||
MIPSEL
|
||||
MIPSELHF
|
||||
MIPS64
|
||||
MIPS64HF
|
||||
MIPS64EL
|
||||
MIPS64ELHF
|
||||
MIPSN32
|
||||
|
||||
COMPAT_FREEBSD32 opt_compat.h
|
||||
|
@ -5,7 +5,7 @@
|
||||
#NO_UNIVERSE
|
||||
|
||||
ident JZ4780
|
||||
machine mips mipsel
|
||||
machine mips mipselhf
|
||||
cpu CPU_XBURST
|
||||
cpu CPU_MIPS4KC
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user