[MPlayer-cvslog] CVS: main configure,1.1106,1.1107
Diego Biurrun CVS
syncmail at mplayerhq.hu
Thu Dec 1 03:51:24 CET 2005
CVS change done by Diego Biurrun CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv16755
Modified Files:
configure
Log Message:
AMD's Family 6 CPUs come with two flavors: one that supports SSE and
one that dosen't. However, they're not easily distinguishible from
their signature (family, model and stepping). Original configure might
set -march=athlon-4 for a CPU that dosen't support SSE and causes gcc
to generate code that won't run on the target machine.
Closes bug #267.
patch by Zuxy Meng zuxy -- dot -- meng -- at -- gmail -- dot -- com
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1106
retrieving revision 1.1107
diff -u -r1.1106 -r1.1107
--- configure 26 Nov 2005 15:52:17 -0000 1.1106
+++ configure 1 Dec 2005 02:51:22 -0000 1.1107
@@ -837,22 +837,15 @@
fi
;;
6) iproc=686
- if test "$pmodel" -ge 7; then
- proc=athlon-4
- elif test "$pmodel" -ge 6; then
- # only Athlon XP supports ssem MP, Duron etc not
- # but most of them are CPUID 666, so check if sse detected
- # btw. there is also athlon-mp opt, but we need extended
- # CPUID to detect if CPU is SMP capable -> athlon-mp ::atmos
- if test "$_sse" = yes && test "$pstepping" -ge 2; then
- proc=athlon-xp
- else
- proc=athlon-4
- fi
- elif test "$pmodel" -ge 4; then
- proc=athlon-tbird
+ # It's a bit difficult to determine the correct type of Family 6
+ # AMD CPUs just from their signature. Instead, we check directly
+ # whether it supports SSE.
+ if test "$_sse" = yes; then
+ # gcc treats athlon-xp, athlon-4 and athlon-mp similarly.
+ proc=athlon-xp
else
- proc=athlon # TODO: should the Duron Spitfire be considered a Thunderbird instead?
+ # Again, gcc treats athlon and athlon-tbird similarly.
+ proc=athlon
fi
;;
15) iproc=686
@@ -861,7 +854,7 @@
proc=k8
;;
- *) proc=athlon-xp iproc=686 ;;
+ *) proc=k8 iproc=686 ;;
esac
;;
GenuineIntel)
More information about the MPlayer-cvslog
mailing list