diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-03-12 16:33:30 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-03-12 16:33:30 +0100 |
| commit | b8ee806a80676e8c0dd85d1b0649a1366613794f (patch) | |
| tree | acdad0f0a6a113f7b0caf876302641f0944f95e8 /src | |
| parent | 9186f5eeeb5f5db470feba1d1015de905295b75a (diff) | |
| download | box64-b8ee806a80676e8c0dd85d1b0649a1366613794f.tar.gz box64-b8ee806a80676e8c0dd85d1b0649a1366613794f.zip | |
Expose POPCNT capability too
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/my_cpuid.c | 1 | ||||
| -rwxr-xr-x | src/wrapped/wrappedlibc.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/my_cpuid.c b/src/tools/my_cpuid.c index 20355462..5454e5c4 100644 --- a/src/tools/my_cpuid.c +++ b/src/tools/my_cpuid.c @@ -89,6 +89,7 @@ void my_cpuid(x64emu_t* emu, uint32_t tmp32u) | 1<<13 // cx16 (cmpxchg16) | 1<<19 // SSE4_1 | 1<<22 // MOVBE + | 1<<23 // POPCOUNT | 1<<25 // aesni ; break; diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 770fdbf8..25076221 100755 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -1548,7 +1548,7 @@ void CreateCPUInfoFile(int fd) P; sprintf(buff, "bogomips\t: %g\n", bogoMips); P; - sprintf(buff, "flags\t\t: fpu cx8 sep cmov clflush mmx sse sse2 syscall tsc lahf_lm ssse3 ht tm lm fma fxsr cpuid pclmulqdq cx16 aes movbe pni sse4_1\n"); + sprintf(buff, "flags\t\t: fpu cx8 sep cmov clflush mmx sse sse2 syscall tsc lahf_lm ssse3 ht tm lm fma fxsr cpuid pclmulqdq cx16 aes movbe pni sse4_1 popcnt\n"); P; sprintf(buff, "address sizes\t: 46 bits physical, 48 bits virtual\n"); P; |