From 64f51949a776e1acdcf5dfb46eea9972547bfd4d Mon Sep 17 00:00:00 2001 From: Stanislav Lanci Date: Tue, 30 Apr 2019 09:15:14 -0400 Subject: [PATCH] Pass through cache information for TOPOEXT CPUs Backports commit a4e0b436f44a4bb47ed4a75b0c05d2547cf12b1c from qemu --- qemu/target/i386/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qemu/target/i386/cpu.c b/qemu/target/i386/cpu.c index e24801e9..2f627a18 100644 --- a/qemu/target/i386/cpu.c +++ b/qemu/target/i386/cpu.c @@ -4102,6 +4102,10 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count, } break; case 0x8000001D: + if (cpu->cache_info_passthrough) { + host_cpuid(index, count, eax, ebx, ecx, edx); + break; + } *eax = 0; switch (count) { case 0: /* L1 dcache info */