=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: ntdll: Improved reporting of CPU Level and Revision on ARM.

Alexandre Julliard julliard at winehq.org
Mon Nov 11 14:08:15 CST 2013


Module: wine
Branch: master
Commit: eef5e45ee6aae7029ec3ec0565fbbdc2ee29b59f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=eef5e45ee6aae7029ec3ec0565fbbdc2ee29b59f

Author: André Hentschel <nerv at dawncrow.de>
Date:   Sun Nov 10 22:40:23 2013 +0100

ntdll: Improved reporting of CPU Level and Revision on ARM.

---

 dlls/ntdll/nt.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index c9499d6..db8272f 100644
--- a/dlls/ntdll/nt.c
+++ b/dlls/ntdll/nt.c
@@ -1080,10 +1080,16 @@ static inline void get_cpuinfo(SYSTEM_CPU_INFORMATION* info)
             while (isspace(*value)) value++;
             if ((s = strchr(value,'\n')))
                 *s='\0';
-            if (!strcasecmp(line, "CPU architecture"))
+            if (!strcasecmp(line, "CPU part"))
             {
                 if (isdigit(value[0]))
-                    info->Level = atoi(value);
+                    info->Level = strtol(value, NULL, 16);
+                continue;
+            }
+            if (!strcasecmp(line, "CPU revision"))
+            {
+                if (isdigit(value[0]))
+                    info->Revision = atoi(value);
                 continue;
             }
             if (!strcasecmp(line, "features"))




More information about the wine-cvs mailing list