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

Alexandre Julliard julliard at winehq.org
Fri Jan 10 14:44:55 CST 2014


Module: wine
Branch: stable
Commit: 7b9949c9e4a2e9c655f574e2a9f1d8175e9203f1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7b9949c9e4a2e9c655f574e2a9f1d8175e9203f1

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.

(cherry picked from commit eef5e45ee6aae7029ec3ec0565fbbdc2ee29b59f)

---

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

diff --git a/dlls/ntdll/nt.c b/dlls/ntdll/nt.c
index 8a53d03..1eff375 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