Skip to content

Commit

Permalink
Pass through cache information for TOPOEXT CPUs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stanislav Lanci authored and ehabkost committed Apr 25, 2019
1 parent 1ec202c commit a4e0b43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions target/i386/cpu.c
Expand Up @@ -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,
Expand Down

0 comments on commit a4e0b43

Please sign in to comment.