mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
b6243cbeaf
commit
e69e4dfd82
|
@ -275,6 +275,10 @@ main(int argc, char **argv)
|
||||||
if (strstr(idstr, "Cyrix") &&
|
if (strstr(idstr, "Cyrix") &&
|
||||||
(family == 5 && model < 4 || family == 6))
|
(family == 5 && model < 4 || family == 6))
|
||||||
printf(" %s", "cyrix_arr");
|
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++) {
|
for (i = 0; cap_amd[i].bit >= 0; i++) {
|
||||||
if (amd_flags & (1 << cap_amd[i].bit)) {
|
if (amd_flags & (1 << cap_amd[i].bit)) {
|
||||||
|
|
|
@ -842,7 +842,7 @@ if x86 || x86_64 ; then
|
||||||
|
|
||||||
exts=`$_cpuinfo | egrep 'features|flags' | cut -d ':' -f 2 | _head 1`
|
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/`
|
-e s/xmm/sse/ -e s/kni/sse/`
|
||||||
|
|
||||||
for ext in $pparam ; do
|
for ext in $pparam ; do
|
||||||
|
|
Loading…
Reference in New Issue