From ce30c1179ecfef615472f55561decc1df2696b1d Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 22 Jun 2024 11:40:35 +0200 Subject: Improved handling of cpuid leaf 0x80000006 --- src/tools/my_cpuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools') diff --git a/src/tools/my_cpuid.c b/src/tools/my_cpuid.c index 1656e269..6bbc6ab0 100644 --- a/src/tools/my_cpuid.c +++ b/src/tools/my_cpuid.c @@ -451,7 +451,7 @@ void my_cpuid(x64emu_t* emu, uint32_t tmp32u) case 0x80000006: // L2 cache line size and associativity R_EAX = 0; R_EBX = 0; - R_ECX = 0; + R_ECX = 64 | (0x6<<12) | (256<<16); // bits: 0-7 line size, 15-12: assoc (using special encoding), 31-16: size in K //TODO: read info from /sys/devices/system/cpu/cpuX/cache/index2 R_EDX = 0; break; case 0x80000007: // Invariant TSC -- cgit 1.4.1