mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
i386/cpu: Clear FEAT_XSAVE_COMP_{LO,HI} when XSAVE is not available
Per Intel SDM vol 1, 13.2, if CPUID.1:ECX.XSAVE[bit 26] is 0, the processor provides no further enumeration through CPUID function 0DH. QEMU does not do this for "-cpu host,-xsave". Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com> Message-Id: <20200716082019.215316-2-xiaoyao.li@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
4773a5f35b
commit
19ca8285fc
1 changed files with 2 additions and 0 deletions
|
@ -6267,6 +6267,8 @@ static void x86_cpu_enable_xsave_components(X86CPU *cpu)
|
||||||
uint64_t mask;
|
uint64_t mask;
|
||||||
|
|
||||||
if (!(env->features[FEAT_1_ECX] & CPUID_EXT_XSAVE)) {
|
if (!(env->features[FEAT_1_ECX] & CPUID_EXT_XSAVE)) {
|
||||||
|
env->features[FEAT_XSAVE_COMP_LO] = 0;
|
||||||
|
env->features[FEAT_XSAVE_COMP_HI] = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue