svn commit: r343924 - head/share/mk

Justin Hibbits jhibbits at FreeBSD.org
Sat Feb 9 02:04:29 UTC 2019


Author: jhibbits
Date: Sat Feb  9 02:04:27 2019
New Revision: 343924
URL: https://svnweb.freebsd.org/changeset/base/343924

Log:
  Correct the CPU target for powerpcspe
  
  The MPC8540 is actually e500v1, which doesn't have double-precision floating
  point support.  The 8548 does, so use that as the CPU target.
  
  MFC after:	2 weeks

Modified:
  head/share/mk/bsd.cpu.mk

Modified: head/share/mk/bsd.cpu.mk
==============================================================================
--- head/share/mk/bsd.cpu.mk	Sat Feb  9 01:49:53 2019	(r343923)
+++ head/share/mk/bsd.cpu.mk	Sat Feb  9 02:04:27 2019	(r343924)
@@ -135,7 +135,7 @@ _CPUCFLAGS = -Wa,-me500 -msoft-float
 _CPUCFLAGS = -mcpu=${CPUTYPE} -mno-powerpc64
 .  endif
 . elif ${MACHINE_ARCH} == "powerpcspe"
-_CPUCFLAGS = -Wa,-me500 -mspe=yes -mabi=spe -mfloat-gprs=double
+_CPUCFLAGS = -Wa,-me500 -mspe=yes -mabi=spe -mfloat-gprs=double -mcpu=8548
 . elif ${MACHINE_ARCH} == "powerpc64"
 _CPUCFLAGS = -mcpu=${CPUTYPE}
 . elif ${MACHINE_CPUARCH} == "mips"
@@ -362,7 +362,7 @@ CFLAGS += -mfloat-abi=softfp
 .endif
 
 .if ${MACHINE_ARCH} == "powerpcspe"
-CFLAGS += -mcpu=8540 -Wa,-me500 -mspe=yes -mabi=spe -mfloat-gprs=double
+CFLAGS += -mcpu=8548 -Wa,-me500 -mspe=yes -mabi=spe -mfloat-gprs=double
 .endif
 
 .if ${MACHINE_CPUARCH} == "riscv"


More information about the svn-src-head mailing list