Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2007 07:46:06 +0200 (CEST)
From:      =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= <bkoenig@cs.tu-berlin.de>
To:        current@freebsd.org
Subject:   Adding k9 and k10 to bsd.cpu.mk
Message-ID:  <62415.2001:6f8:101e:0:20e:cff:fe6d:6adb.1188366366.squirrel@webmail.alpha-tierchen.de>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hello,

what do you think about adding the CPU types "k9" and "k10"? These
processors have support for SSE3 and I noticed up to 15% faster execution
of CPU-intensive programs (e.g. graphics/povray) that have been compiled
using -march=athlon-mp -msse3.

Regards
Björn

[-- Attachment #2 --]
--- bsd.cpu.mk.orig	Fri Jan 12 08:41:17 2007
+++ bsd.cpu.mk	Wed Aug 29 07:38:01 2007
@@ -70,6 +70,8 @@
 . if ${MACHINE_ARCH} == "i386"
 .  if ${CPUTYPE} == "crusoe"
 _CPUCFLAGS = -march=i686 -falign-functions=0 -falign-jumps=0 -falign-loops=0
+.  elif ${CPUTYPE} == "k9" || ${CPUTYPE} == "k10"
+_CPUCFLAGS = -march=athlon-mp -msse3
 .  elif ${CPUTYPE} == "k5"
 _CPUCFLAGS = -march=pentium
 .  else
@@ -121,6 +123,8 @@
 . if ${MACHINE_ARCH} == "i386"
 .  if ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64"
 MACHINE_CPU = athlon-xp athlon k7 3dnow sse2 sse mmx k6 k5 i586 i486 i386
+.  elif ${CPUTYPE} == "k9" || ${CPUTYPE} == "k10"
+MACHINE_CPU = athlon-xp athlon k7 3dnow sse3 sse2 sse mmx k6 k5 i586 i486 i386
 .  elif ${CPUTYPE} == "athlon-mp" || ${CPUTYPE} == "athlon-xp" || \
     ${CPUTYPE} == "athlon-4"
 MACHINE_CPU = athlon-xp athlon k7 3dnow sse mmx k6 k5 i586 i486 i386