about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-02-27 17:44:09 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-02-27 17:44:09 +0100
commitef705ed4942a691ba686c2d83a8ae5fa5df2d00b (patch)
treee05761a2581ddebafd4c9a2dc70bd48612012a81 /src
parentfb6915b0595118ed6998d9ba8f83ec4f424b15ba (diff)
downloadbox64-ef705ed4942a691ba686c2d83a8ae5fa5df2d00b.tar.gz
box64-ef705ed4942a691ba686c2d83a8ae5fa5df2d00b.zip
Added empty command 14 to CPUID
Diffstat (limited to 'src')
-rw-r--r--src/tools/my_cpuid.c11
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