Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Inglis <Brian.Inglis@SystematicSW.ab.ca>2019-10-07 19:23:07 +0300
committerKen Brown <kbrown@cornell.edu>2019-10-07 22:50:33 +0300
commit2160c52a49c80c0c7fe86a47476a1815d20c2c03 (patch)
treeafe425e20117d9873aecdbdc895c61e481bc3f32
parent8cf614a88bfb2c0383fca372dc401998222823a9 (diff)
fhandler_proc.cc(format_proc_cpuinfo): or model extension bits
or model extension bits into model high bits instead of adding arithmetically like family extension.
-rw-r--r--winsup/cygwin/fhandler_proc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index c924cf2e0..8c331f5f4 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -740,7 +740,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
if (family == 15)
family += (cpuid_sig >> 20) & 0xff;
if (family >= 6)
- model += ((cpuid_sig >> 16) & 0x0f) << 4;
+ model |= ((cpuid_sig >> 16) & 0x0f) << 4; /* ext model << 4 | model */
uint32_t maxe = 0;
cpuid (&maxe, &unused, &unused, &unused, 0x80000000);