Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2011 22:32:21 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218896 - in head/share: examples/etc mk
Message-ID:  <201102202232.p1KMWLKo047088@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Sun Feb 20 22:32:21 2011
New Revision: 218896
URL: http://svn.freebsd.org/changeset/base/218896

Log:
  Add opteron-sse3, athlon64-sse3 and k8-sse3 cpu types to bsd.cpu.mk.
  - add "sse3" to MACHINE_CPU for the new cpu types
  - for i386, default to CPUTYPE=prescott for the new cpu types
  
  PR:		gnu/154906
  Discussed with:	kib, kan, dim
  MFC after:	2 weeks

Modified:
  head/share/examples/etc/make.conf
  head/share/mk/bsd.cpu.mk

Modified: head/share/examples/etc/make.conf
==============================================================================
--- head/share/examples/etc/make.conf	Sun Feb 20 22:25:23 2011	(r218895)
+++ head/share/examples/etc/make.conf	Sun Feb 20 22:32:21 2011	(r218896)
@@ -30,8 +30,9 @@
 # NO_CPU_CFLAGS variable below.
 # Currently the following CPU types are recognized:
 #   Intel x86 architecture:
-#       (AMD CPUs)	opteron athlon64 athlon-mp athlon-xp athlon-4
-#			athlon-tbird athlon k8 k6-3 k6-2 k6 k5
+#       (AMD CPUs)	opteron-sse3 opteron athlon64-sse3 athlon64 athlon-mp
+#			athlon-xp athlon-4 athlon-tbird athlon k8-sse3 k8
+#			k6-3 k6-2 k6 k5
 #       (Intel CPUs)	core2 core nocona pentium4m pentium4 prescott
 #			pentium3m pentium3 pentium-m pentium2
 #			pentiumpro pentium-mmx pentium i486 i386

Modified: head/share/mk/bsd.cpu.mk
==============================================================================
--- head/share/mk/bsd.cpu.mk	Sun Feb 20 22:25:23 2011	(r218895)
+++ head/share/mk/bsd.cpu.mk	Sun Feb 20 22:32:21 2011	(r218896)
@@ -49,6 +49,9 @@ CPUTYPE = pentiumpro
 CPUTYPE = pentium-mmx
 .  elif ${CPUTYPE} == "i586"
 CPUTYPE = pentium
+.  elif ${CPUTYPE} == "opteron-sse3" || ${CPUTYPE} == "athlon64-sse3" || \
+     ${CPUTYPE} == "k8-sse3"
+CPUTYPE = prescott
 .  elif ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64" || \
      ${CPUTYPE} == "k8"
 CPUTYPE = athlon-mp
@@ -158,7 +161,9 @@ _CPUCFLAGS = -mcpu=ultrasparc3
 # presence of a CPU feature.
 
 . if ${MACHINE_CPUARCH} == "i386"
-.  if ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64"
+.  if ${CPUTYPE} == "opteron-sse3" || ${CPUTYPE} == "athlon64-sse3"
+MACHINE_CPU = athlon-xp athlon k7 3dnow sse3 sse2 sse mmx k6 k5 i586 i486 i386
+.  elif ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64"
 MACHINE_CPU = athlon-xp athlon k7 3dnow sse2 sse mmx k6 k5 i586 i486 i386
 .  elif ${CPUTYPE} == "athlon-mp" || ${CPUTYPE} == "athlon-xp" || \
     ${CPUTYPE} == "athlon-4"
@@ -197,7 +202,9 @@ MACHINE_CPU = i486 i386
 MACHINE_CPU = i386
 .  endif
 . elif ${MACHINE_CPUARCH} == "amd64"
-.  if ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64" || ${CPUTYPE} == "k8"
+.  if ${CPUTYPE} == "opteron-sse3" || ${CPUTYPE} == "athlon64-sse3" || ${CPUTYPE} == "k8-sse3"
+MACHINE_CPU = k8 3dnow sse3
+.  elif ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64" || ${CPUTYPE} == "k8"
 MACHINE_CPU = k8 3dnow
 .  elif ${CPUTYPE} == "nocona"
 MACHINE_CPU = sse3



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