projg2 / cpuid2cpuflags

Tool to generate CPU_FLAGS_* for your CPU
GNU General Public License v2.0
104 stars 20 forks source link

cpuid2cpuflags omits ssse3 for skylake intel cpu #12

Closed C0br4 closed 5 years ago

C0br4 commented 5 years ago

On my vps cpuid2cpuflags does not list ssse3 even though it should support it according to wikipedia. lscpu output:


CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
Address sizes:       40 bits physical, 48 bits virtual
CPU(s):              1
On-line CPU(s) list: 0
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               85
Model name:          Intel Xeon Processor (Skylake, IBRS)
Stepping:            4
CPU MHz:             2100.000
BogoMIPS:            4200.00
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           32K
L1i cache:           32K
L2 cache:            4096K
L3 cache:            16384K
NUMA node0 CPU(s):   0
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 arat
`
mgorny commented 5 years ago

Could you unpack the sources, run the following and paste the output?

./configure
make x86-dump
./x86-dump

This will include the values from CPUID calls that are used to determine flags.

mgorny commented 5 years ago

Also please include the actual output of cpuid2cpuflags.

C0br4 commented 5 years ago

Omg, I'm so dumb. I didn't knew that the cursor in tmux must be moved to the end of the output+1 char and didn't copied the last character of the output. Sorry for taking your time.

mgorny commented 5 years ago

No problem.