public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] cpuinfo: fix check for cpuid 0x80000007 support
@ 2021-02-18  8:39 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2021-02-18  8:39 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a8d99824bad67ebb855f53b32091d9cd253ebfc7

commit a8d99824bad67ebb855f53b32091d9cd253ebfc7
Author: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Date:   Wed Feb 17 09:28:35 2021 -0700

    cpuinfo: fix check for cpuid 0x80000007 support

Diff:
---
 winsup/cygwin/fhandler_proc.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index 8e23c0609..d4c8613eb 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -1293,7 +1293,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
 
 /* features scattered in various CPUID levels. */
       /* cpuid 0x80000007 edx */
-      if (maxf >= 0x00000007)
+      if (maxe >= 0x80000007)
 	{
 	  cpuid (&unused, &unused, &unused, &features1, 0x80000007);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-18  8:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18  8:39 [newlib-cygwin] cpuinfo: fix check for cpuid 0x80000007 support Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).