summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStanislav Lanci <pixo@polepetko.eu>2019-04-16 14:38:33 +0200
committerEduardo Habkost <ehabkost@redhat.com>2019-04-25 14:52:28 -0300
commita4e0b436f44a4bb47ed4a75b0c05d2547cf12b1c (patch)
tree52a3243acec1e70a32b66a8ba8e4760a7de073e7
parent1ec202c9bed532ea629af9ce95485dd36a183250 (diff)
downloadfocaccia-qemu-a4e0b436f44a4bb47ed4a75b0c05d2547cf12b1c.tar.gz
focaccia-qemu-a4e0b436f44a4bb47ed4a75b0c05d2547cf12b1c.zip
Pass through cache information for TOPOEXT CPUs
Signed-off-by: Stanislav Lanci <pixo@polepetko.eu>
Message-Id: <20190416123833.60649-1-pixo@polepetko.eu>
[ehabkost: removed redundant comment line]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-rw-r--r--target/i386/cpu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index d92b0f6fcc..722c5514d4 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -4591,6 +4591,10 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count,
         break;
     case 0x8000001D:
         *eax = 0;
+        if (cpu->cache_info_passthrough) {
+            host_cpuid(index, count, eax, ebx, ecx, edx);
+            break;
+        }
         switch (count) {
         case 0: /* L1 dcache info */
             encode_cache_cpuid8000001d(env->cache_info_amd.l1d_cache, cs,