Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Feb 2019 20:51:47 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r344499 - stable/12/share/mk
Message-ID:  <201902242051.x1OKplEV033202@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Sun Feb 24 20:51:47 2019
New Revision: 344499
URL: https://svnweb.freebsd.org/changeset/base/344499

Log:
  MFC r343924:
  
  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.

Modified:
  stable/12/share/mk/bsd.cpu.mk
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/share/mk/bsd.cpu.mk
==============================================================================
--- stable/12/share/mk/bsd.cpu.mk	Sun Feb 24 20:49:16 2019	(r344498)
+++ stable/12/share/mk/bsd.cpu.mk	Sun Feb 24 20:51:47 2019	(r344499)
@@ -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"



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