about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-05-31 13:16:12 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-05-31 13:16:12 +0200
commit81a06c47a13bccd23f7cf32b3020c897bfd720d8 (patch)
tree9a8043105d00c896f2cb5b5fe5e23bdc72a41573 /src
parent46b8c6bc83c33aab2daef0e64c8cc995bbd63e20 (diff)
downloadbox64-81a06c47a13bccd23f7cf32b3020c897bfd720d8.tar.gz
box64-81a06c47a13bccd23f7cf32b3020c897bfd720d8.zip
Define CLFLUSH size in CPUID (helps Java programs)
Diffstat (limited to 'src')
-rw-r--r--src/tools/my_cpuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/my_cpuid.c b/src/tools/my_cpuid.c
index 793f8d7f..e3f716be 100644
--- a/src/tools/my_cpuid.c
+++ b/src/tools/my_cpuid.c
@@ -37,7 +37,7 @@ void my_cpuid(x64emu_t* emu, uint32_t tmp32u)
             break;
         case 0x1:
             R_EAX = 0x00000601; // family and all
-            R_EBX = 0;          // Brand index, CLFlush, Max APIC ID, Local APIC ID
+            R_EBX = 0 | (8<<0x8);          // Brand index, CLFlush (8), Max APIC ID, Local APIC ID
             R_EDX =   1         // fpu 
                     | 1<<4      // rdtsc
                     | 1<<8      // cmpxchg8