mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
target/i386: enable monitor and ucode revision with -cpu max
These two features were incorrectly tied to host_cpuid_required rather than cpu->max_features. As a result, -cpu max was not enabling either MONITOR features or ucode revision. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
6702514814
commit
be02cda3af
1 changed files with 2 additions and 0 deletions
|
@ -6414,7 +6414,9 @@ static void x86_cpu_realizefn(DeviceState *dev, Error **errp)
|
|||
error_setg(&local_err, "CPU model '%s' requires KVM", name);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
if (cpu->max_features && accel_uses_host_cpuid()) {
|
||||
if (enable_cpu_pm) {
|
||||
host_cpuid(5, 0, &cpu->mwait.eax, &cpu->mwait.ebx,
|
||||
&cpu->mwait.ecx, &cpu->mwait.edx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue