[MPlayer-dev-eng] [PATCH] centaur_mcr support
Zuxy Meng
zuxy.meng at gmail.com
Thu May 18 14:07:32 CEST 2006
On old WinChips Linux kernel use this to emulate MTRR.
--
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
--- main/configure 2006-05-18 12:29:17.000000000 +0800
+++ main.new/configure 2006-05-18 20:02:15.000000000 +0800
@@ -842,7 +842,7 @@
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
--- main/TOOLS/cpuinfo.c 2006-05-18 12:29:01.000000000 +0800
+++ main.new/TOOLS/cpuinfo.c 2006-05-18 20:00:01.000000000 +0800
@@ -275,6 +275,10 @@
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)) {
More information about the MPlayer-dev-eng
mailing list