[MPlayer-cvslog] r38443 - trunk/cpuinfo.c

zuxy subversion at mplayerhq.hu
Sat Nov 11 03:06:04 EET 2023


Author: zuxy
Date: Sat Nov 11 03:06:03 2023
New Revision: 38443

Log:
cpuinfo.c: fix CPU model for families > 0xf

Modified:
   trunk/cpuinfo.c

Modified: trunk/cpuinfo.c
==============================================================================
--- trunk/cpuinfo.c	Fri Nov 10 04:58:18 2023	(r38442)
+++ trunk/cpuinfo.c	Sat Nov 11 03:06:03 2023	(r38443)
@@ -329,10 +329,10 @@ main(void)
         model = (regs.eax >> 4) & 0xf;
         stepping = regs.eax & 0xf;
 
-        if (family == 0xf)
-            family += (regs.eax >> 20) & 0xff;
         if (family == 0xf || family == 6)
             model += ((regs.eax >> 16) & 0xf) << 4;
+        if (family == 0xf)
+            family += (regs.eax >> 20) & 0xff;
 
         printf("cpu family\t: %d\n"
                "model\t\t: %d\n"


More information about the MPlayer-cvslog mailing list