about summary refs log tree commit diff stats
path: root/src/tools
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-10-30 16:38:15 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-10-30 16:38:15 +0100
commitcb2a623faa78b02b93b402f665030f6b75cdf0a9 (patch)
tree6b376883dc43953b876c2fd8fa12fce94b29eb1e /src/tools
parent7e80e7ba86c51487e71e95d52fb72f45c94030ba (diff)
downloadbox64-cb2a623faa78b02b93b402f665030f6b75cdf0a9.tar.gz
box64-cb2a623faa78b02b93b402f665030f6b75cdf0a9.zip
Added full SSE 4.2 support
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/my_cpuid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/my_cpuid.c b/src/tools/my_cpuid.c
index 6039f135..81399633 100644
--- a/src/tools/my_cpuid.c
+++ b/src/tools/my_cpuid.c
@@ -193,6 +193,7 @@ void my_cpuid(x64emu_t* emu, uint32_t tmp32u)
                 R_EAX |= cpu<<24;
             }*/
             R_EDX =   1         // fpu 
+                    | 1<<2      // debugging extension
                     | 1<<4      // rdtsc
                     | 1<<8      // cmpxchg8
                     | 1<<11     // sep (sysenter & sysexit)
@@ -202,6 +203,7 @@ void my_cpuid(x64emu_t* emu, uint32_t tmp32u)
                     | 1<<24     // fxsr (fxsave, fxrestore)
                     | 1<<25     // SSE
                     | 1<<26     // SSE2
+                    | 1<<28     // HT / Multi-core
                     ;
             R_ECX =   1<<0      // SSE3
                     | 1<<1      // PCLMULQDQ
@@ -209,6 +211,7 @@ void my_cpuid(x64emu_t* emu, uint32_t tmp32u)
                     | 1<<12     // fma
                     | 1<<13     // cx16 (cmpxchg16)
                     | 1<<19     // SSE4_1
+                    | 1<<20     // SSE4_2
                     | 1<<22     // MOVBE
                     | 1<<23     // POPCOUNT
                     | 1<<25     // aesni