summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-02-27 11:21:47 +0000
committerkris <kris@FreeBSD.org>2001-02-27 11:21:47 +0000
commit23b79b16b0511e36948f04e5ae3140a9286d4256 (patch)
tree1359b805e08d2d08fb823c3d040789a96b0ea578 /share/mk
parent97a68a0cd38a47db65ec7c4118c5bd4ba6931aff (diff)
downloadFreeBSD-src-23b79b16b0511e36948f04e5ae3140a9286d4256.zip
FreeBSD-src-23b79b16b0511e36948f04e5ae3140a9286d4256.tar.gz
Add definitions and support for the AMD k6-2, Pentium MMX (i586/MMX),
and Pentium II, III and IV processors (p2, p3, p4), as well as 'mmx' and '3dnow' MACHINE_CPU tags as appropriate. In the near future this will be used to control various ports which have MMX/3dNow optimizations, instead of the ad-hoc methods currently used. Reviewed by: peter
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.cpu.mk22
1 files changed, 21 insertions, 1 deletions
diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk
index bbf3080..63937f3 100644
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -32,12 +32,22 @@ CPUTYPE = k7
. if ${MACHINE_ARCH} == "i386"
. if ${CPUTYPE} == "k7"
CFLAGS += -march=k6 # gcc doesn't support athlon yet, but it will
+. elif ${CPUTYPE} == "k6-2"
+CFLAGS += -march=k6
. elif ${CPUTYPE} == "k6"
CFLAGS += -march=k6
. elif ${CPUTYPE} == "k5"
CFLAGS += -march=pentium
+. elif ${CPUTYPE} == "p4"
+CFLAGS += -march=pentiumpro
+. elif ${CPUTYPE} == "p3"
+CFLAGS += -march=pentiumpro
+. elif ${CPUTYPE} == "p2"
+CFLAGS += -march=pentiumpro
. elif ${CPUTYPE} == "i686"
CFLAGS += -march=pentiumpro
+. elif ${CPUTYPE} == "i586/mmx"
+CFLAGS += -march=pentium
. elif ${CPUTYPE} == "i586"
CFLAGS += -march=pentium
. elif ${CPUTYPE} == "i486"
@@ -66,13 +76,23 @@ CFLAGS += -mcpu=ev4
.if ${MACHINE_ARCH} == "i386"
. if ${CPUTYPE} == "k7"
-MACHINE_CPU = k7 k6 k5 i586 i486 i386
+MACHINE_CPU = k7 3dnow k6 k5 i586 i486 i386
+. elif ${CPUTYPE} == "k6-2"
+MACHINE_CPU = 3dnow k6 k5 i586 i486 i386
. elif ${CPUTYPE} == "k6"
MACHINE_CPU = k6 k5 i586 i486 i386
. elif ${CPUTYPE} == "k5"
MACHINE_CPU = k5 i586 i486 i386
+. elif ${CPUTYPE} == "p4"
+MACHINE_CPU = sse i686 mmx i586 i486 i386
+. elif ${CPUTYPE} == "p3"
+MACHINE_CPU = sse i686 mmx i586 i486 i386
+. elif ${CPUTYPE} == "p2"
+MACHINE_CPU = sse i686 mmx i586 i486 i386
. elif ${CPUTYPE} == "i686"
MACHINE_CPU = i686 i586 i486 i386
+. elif ${CPUTYPE} == "i586/mmx"
+MACHINE_CPU = mmx i586 i486 i386
. elif ${CPUTYPE} == "i586"
MACHINE_CPU = i586 i486 i386
. elif ${CPUTYPE} == "i486"
OpenPOWER on IntegriCloud