Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2018 01:47:02 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341101 - head/stand
Message-ID:  <201811280147.wAS1l2WV024424@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811280147.wAS1l2WV024424>