From cb2a623faa78b02b93b402f665030f6b75cdf0a9 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 30 Oct 2023 16:38:15 +0100 Subject: Added full SSE 4.2 support --- src/tools/my_cpuid.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tools') 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 -- cgit 1.4.1