Fix an Athlon detection glitch: the "Athlon Model 1" is neither an

"Athlon MP" nor a "Pentium Pro".  Correct this by testing for the special
cases first rather than trying to be clever in the generic test.
Bump package version to 0.58
This commit is contained in:
rh 2003-10-19 00:24:28 +00:00
parent 2b27b2514b
commit d283baef26
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.60 2003/10/02 16:10:00 abs Exp $
# $NetBSD: Makefile,v 1.61 2003/10/19 00:24:28 rh Exp $
#
DISTNAME= cpuflags-0.57
DISTNAME= cpuflags-0.58
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty

View file

@ -1,5 +1,5 @@
#!/bin/sh
# $NetBSD: cpuflags.NetBSD,v 1.42 2003/10/02 16:10:00 abs Exp $
# $NetBSD: cpuflags.NetBSD,v 1.43 2003/10/19 00:24:28 rh Exp $
if [ -x /sbin/sysctl ] ;then
SYSCTL=/sbin/sysctl
@ -66,10 +66,10 @@ case $hw_machine_arch in
*AMD\ K6-2*) FLAGS='-march=k6-2' ;;
*AMD\ K6*) FLAGS='-march=k6' ;;
*AMD\ Duron*) FLAGS='-march=athlon' ;;
*AMD\ K7*|*AMD\ Athlon*^[4XM]*) FLAGS='-march=athlon' ;;
*AMD\ Athlon\ 4*) FLAGS='-march=athlon-4' ;;
*AMD\ Athlon\ MP*) FLAGS='-march=athlon-mp' ;;
*AMD\ Athlon\ XP*) FLAGS='-march=athlon-xp' ;;
*AMD\ K7*|*AMD\ Athlon*) FLAGS='-march=athlon' ;;
*386-class*) FLAGS='-march=i386' ;;
*486-class*) FLAGS='-march=i486' ;;
*586-class*) FLAGS='-march=pentium' ;;