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
This commit is contained in:
Kris Kennaway 2001-02-27 11:21:47 +00:00
parent 79f0014dd5
commit 181b6941c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73145
3 changed files with 27 additions and 3 deletions

View File

@ -21,7 +21,9 @@
# The automatic setting of CFLAGS may be overridden using the
# NO_CPU_CFLAGS variable below.
# Currently the following CPU types are recognised:
# Intel x86 architecture: k7 k6 k5 i686 i586 i486 i386
# Intel x86 architecture:
# (AMD CPUs) k7 k6-2 k6 k5
# (Intel CPUs) p4 p3 p2 i686 i586/mmx i586 i486 i386
# Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4
# Intel ia64 architecture: itanium
#

View File

@ -21,7 +21,9 @@
# The automatic setting of CFLAGS may be overridden using the
# NO_CPU_CFLAGS variable below.
# Currently the following CPU types are recognised:
# Intel x86 architecture: k7 k6 k5 i686 i586 i486 i386
# Intel x86 architecture:
# (AMD CPUs) k7 k6-2 k6 k5
# (Intel CPUs) p4 p3 p2 i686 i586/mmx i586 i486 i386
# Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4
# Intel ia64 architecture: itanium
#

View File

@ -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"