Pass through cache information for TOPOEXT CPUs

Backports commit a4e0b436f44a4bb47ed4a75b0c05d2547cf12b1c from qemu
This commit is contained in:
Stanislav Lanci 2019-04-30 09:15:14 -04:00 committed by Lioncash
parent 4bbf02a5f6
commit 64f51949a7
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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 */