aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar poirierg <poirierg@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-05-31 23:37:29 +0000
committerGravatar poirierg <poirierg@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-05-31 23:37:29 +0000
commite69e4dfd82467d815d462bc75f0f6ac3b63e056c (patch)
treee204e1a76e7ae944bafe71291093fcaf2b86991b
parentb6243cbeaf2266d75da09b341ce7b23bacc5cb64 (diff)
On old WinChips Linux kernel use this to emulate MTRR, patch by Zuxy Meng < zuxy P meng A gmail P com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18553 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--TOOLS/cpuinfo.c4
-rwxr-xr-xconfigure2
2 files changed, 5 insertions, 1 deletions
diff --git a/TOOLS/cpuinfo.c b/TOOLS/cpuinfo.c
index cd1ed0741d..d6c47cbf2d 100644
--- a/TOOLS/cpuinfo.c
+++ b/TOOLS/cpuinfo.c
@@ -275,6 +275,10 @@ main(int argc, char **argv)
if (strstr(idstr, "Cyrix") &&
(family == 5 && model < 4 || family == 6))
printf(" %s", "cyrix_arr");
+ /* as well as centaur_mcr. */
+ if (strstr(idstr, "Centaur") &&
+ family == 5)
+ printf(" %s", "centaur_mcr");
for (i = 0; cap_amd[i].bit >= 0; i++) {
if (amd_flags & (1 << cap_amd[i].bit)) {
diff --git a/configure b/configure
index d857b45333..e5dcf32ebc 100755
--- a/configure
+++ b/configure
@@ -842,7 +842,7 @@ if x86 || x86_64 ; then
exts=`$_cpuinfo | egrep 'features|flags' | cut -d ':' -f 2 | _head 1`
- pparam=`echo $exts | sed -e s/k6_mtrr/mtrr/ -e s/cyrix_arr/mtrr/ \
+ pparam=`echo $exts | sed -e s/k6_mtrr/mtrr/ -e s/cyrix_arr/mtrr/ -e s/centaur_mcr/mtrr/ \
-e s/xmm/sse/ -e s/kni/sse/`
for ext in $pparam ; do