svn commit: r341101 - head/stand
Justin Hibbits
jhibbits at FreeBSD.org
Wed Nov 28 01:47:02 UTC 2018
Author: jhibbits
Date: Wed Nov 28 01:47:01 2018
New Revision: 341101
URL: https://svnweb.freebsd.org/changeset/base/341101
Log:
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.
Modified:
head/stand/defs.mk
Modified: head/stand/defs.mk
==============================================================================
--- head/stand/defs.mk Tue Nov 27 22:33:58 2018 (r341100)
+++ head/stand/defs.mk Wed Nov 28 01:47:01 2018 (r341101)
@@ -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
More information about the svn-src-all
mailing list