1
mirror of https://github.com/mpv-player/mpv synced 2025-01-05 03:06:28 +01:00

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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17068 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2005-12-01 02:51:22 +00:00
parent 6ac24fccd8
commit e85591adcf

25
configure vendored
View File

@ -837,22 +837,15 @@ case "$host_arch" in
fi fi
;; ;;
6) iproc=686 6) iproc=686
if test "$pmodel" -ge 7; then # It's a bit difficult to determine the correct type of Family 6
proc=athlon-4 # AMD CPUs just from their signature. Instead, we check directly
elif test "$pmodel" -ge 6; then # whether it supports SSE.
# only Athlon XP supports ssem MP, Duron etc not if test "$_sse" = yes; then
# but most of them are CPUID 666, so check if sse detected # gcc treats athlon-xp, athlon-4 and athlon-mp similarly.
# btw. there is also athlon-mp opt, but we need extended proc=athlon-xp
# 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
else else
proc=athlon # TODO: should the Duron Spitfire be considered a Thunderbird instead? # Again, gcc treats athlon and athlon-tbird similarly.
proc=athlon
fi fi
;; ;;
15) iproc=686 15) iproc=686
@ -861,7 +854,7 @@ case "$host_arch" in
proc=k8 proc=k8
;; ;;
*) proc=athlon-xp iproc=686 ;; *) proc=k8 iproc=686 ;;
esac esac
;; ;;
GenuineIntel) GenuineIntel)