powerpcspe: Don't crash the loader on ubldr with SPE instructions.

-msoft-float seems to be insufficient for disabling the SPE on powerpcspe.
Force it off with -mno-spe as well.  This prevents a crash in ubldr on
powerpcspe.
This commit is contained in:
Justin Hibbits 2018-11-28 01:47:01 +00:00
parent 2d714dbcc7
commit 89797c881d

View File

@ -115,6 +115,11 @@ CFLAGS+= -march=rv64imac -mabi=lp64
CFLAGS+= -msoft-float
.endif
# -msoft-float seems to be insufficient for powerpcspe
.if ${MACHINE_ARCH} == "powerpcspe"
CFLAGS+= -mno-spe
.endif
.if ${MACHINE_CPUARCH} == "i386" || (${MACHINE_CPUARCH} == "amd64" && ${DO32:U0} == 1)
CFLAGS+= -march=i386
CFLAGS.gcc+= -mpreferred-stack-boundary=2