diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-03-11 15:22:01 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-03-11 15:22:08 +0100 |
| commit | 65404cba33073e6da019053babf20f246f8dbbc5 (patch) | |
| tree | 6496a611fc0edd01b1e7949695f8294d5eb72ce4 /src/tools | |
| parent | ac0519a046e1517508051dbb13943a056123950a (diff) | |
| download | box64-65404cba33073e6da019053babf20f246f8dbbc5.tar.gz box64-65404cba33073e6da019053babf20f246f8dbbc5.zip | |
Do not expose FMA cpu extension, it's associated to AVX by some engines
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/my_cpuid.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tools/my_cpuid.c b/src/tools/my_cpuid.c index 145f55f4..76bfd2da 100644 --- a/src/tools/my_cpuid.c +++ b/src/tools/my_cpuid.c @@ -247,7 +247,7 @@ void my_cpuid(x64emu_t* emu, uint32_t tmp32u) R_ECX = 1<<0 // SSE3 | 1<<1 // PCLMULQDQ | 1<<9 // SSSE3 - | 1<<12 // fma + //| 1<<12 // fma // some games treat FMA as AVX | 1<<13 // cx16 (cmpxchg16) | 1<<19 // SSE4_1 | 1<<20 // SSE4_2 @@ -311,10 +311,11 @@ void my_cpuid(x64emu_t* emu, uint32_t tmp32u) case 0x7: // extended bits... if(R_ECX==0) { R_EAX = 0; - R_EBX = 0 | + R_EBX = //1<<3 | // BMI1 //1<<8 | //BMI2 - 1<<29; // SHA extension + 1<<29| // SHA extension + 0; } else {R_EAX = R_ECX = R_EBX = R_EDX = 0;} break; case 0xB: // Extended Topology Enumeration Leaf |