diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-02-27 17:44:09 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-02-27 17:44:09 +0100 |
| commit | ef705ed4942a691ba686c2d83a8ae5fa5df2d00b (patch) | |
| tree | e05761a2581ddebafd4c9a2dc70bd48612012a81 /src | |
| parent | fb6915b0595118ed6998d9ba8f83ec4f424b15ba (diff) | |
| download | box64-ef705ed4942a691ba686c2d83a8ae5fa5df2d00b.tar.gz box64-ef705ed4942a691ba686c2d83a8ae5fa5df2d00b.zip | |
Added empty command 14 to CPUID
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/my_cpuid.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/my_cpuid.c b/src/tools/my_cpuid.c index a7f9ae3e..c4c37d37 100644 --- a/src/tools/my_cpuid.c +++ b/src/tools/my_cpuid.c @@ -356,6 +356,17 @@ void my_cpuid(x64emu_t* emu, uint32_t tmp32u) default: R_EAX = 0; } break; + case 0x14: // Processor Trace Enumeration Main Leaf + switch(R_ECX) { + case 0: // main leaf + R_EAX = 0; // max sub-leaf + R_EBX = 0; + R_ECX = 0; + R_EDX = 0; + break; + default: R_EAX = 0; + } + break; case 0x15: // TSC core frenquency R_EAX = 1; // denominator R_EBX = 1; // numerator |