[MPlayer-dev-eng] Support for Conroe-L CPU (cpuid signature 6-16-x)

Zuxy Meng zuxy.meng at gmail.com
Thu Apr 19 09:49:24 CEST 2007


Hi,

Intel's Conroe-L makes use of extended models so we have to change a
little bit to the configure script as well as cpuinfo.c

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
Index: configure
===================================================================
--- configure	?????? 23023??
+++ configure	????????????
@@ -1641,7 +1641,7 @@
 	fi
 	;;
     6) iproc=686
-	if test "$pmodel" -eq 15; then
+	if test "$pmodel" -ge 15; then
 		proc=core2
 	elif test "$pmodel" -eq 9 -o "$pmodel" -ge 13; then
 		proc=pentium-m
Index: cpuinfo.c
===================================================================
--- cpuinfo.c	?????? 23023??
+++ cpuinfo.c	????????????
@@ -241,10 +250,9 @@
     stepping = regs.eax & 0xf;
 
     if (family == 0xf)
-    {
       family += (regs.eax >> 20) & 0xff;
+    if (family == 0xf || family == 6)
       model += ((regs.eax >> 16) & 0xf) << 4;
-    }
 
     printf("cpu family\t: %d\n"
            "model\t\t: %d\n"


More information about the MPlayer-dev-eng mailing list