projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ec202c
)
Pass through cache information for TOPOEXT CPUs
author
Stanislav Lanci
<pixo@polepetko.eu>
Tue, 16 Apr 2019 12:38:33 +0000
(14:38 +0200)
committer
Eduardo Habkost
<ehabkost@redhat.com>
Thu, 25 Apr 2019 17:52:28 +0000
(14:52 -0300)
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
patch
|
blob
|
history
diff --git
a/target/i386/cpu.c
b/target/i386/cpu.c
index d92b0f6fcc44c0abf6059d7032b74c9730d5968e..722c5514d42e92d44eaa5b37f3c391c66e5e9232 100644
(file)
--- 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,