[PULL,4/4] Pass through cache information for TOPOEXT CPUs
diff mbox series

Message ID 20190425181342.15360-5-ehabkost@redhat.com
State New
Headers show
Series
  • [PULL,1/4] i386: Add new Hygon 'Dhyana' CPU model
Related show

Commit Message

Eduardo Habkost April 25, 2019, 6:13 p.m. UTC
From: Stanislav Lanci <pixo@polepetko.eu>

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>
---
 target/i386/cpu.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch
diff mbox series

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,