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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to