diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-05-31 13:16:12 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-05-31 13:16:12 +0200 |
| commit | 81a06c47a13bccd23f7cf32b3020c897bfd720d8 (patch) | |
| tree | 9a8043105d00c896f2cb5b5fe5e23bdc72a41573 | |
| parent | 46b8c6bc83c33aab2daef0e64c8cc995bbd63e20 (diff) | |
| download | box64-81a06c47a13bccd23f7cf32b3020c897bfd720d8.tar.gz box64-81a06c47a13bccd23f7cf32b3020c897bfd720d8.zip | |
Define CLFLUSH size in CPUID (helps Java programs)
| -rw-r--r-- | src/tools/my_cpuid.c | 2 |
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 |