]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
pc: Remove PCLMULQDQ from Westmere on pc-*-1.4 and older
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 9 Aug 2013 14:11:36 +0000 (11:11 -0300)
committerAndreas Färber <afaerber@suse.de>
Mon, 12 Aug 2013 15:33:28 +0000 (17:33 +0200)
Commit 41cb383f42d0cb51d8e3e25e3ecebc954dd4196f made a guest-visible
change by adding the PCLMULQDQ bit to Westmere without adding
compatibility code to keep the ABI for older machine-types.
Fix it by adding the missing compat code.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/i386/pc_piix.c
hw/i386/pc_q35.c

index a19e17229be496440064d684566e68aab28b8e74..1329f970a9709ca58b85bfbed2badd02f84af837 100644 (file)
@@ -265,6 +265,7 @@ static void pc_init_pci_1_4(QEMUMachineInitArgs *args)
 {
     has_pvpanic = false;
     x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
+    x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, 0, CPUID_EXT_PCLMULQDQ);
     pc_init_pci_1_5(args);
 }
 
index be6013f472f3121466d3bf08eb94dc3d22521dd4..1d84ead9ee34bd339e0bde7ff472a8c3ee666702 100644 (file)
@@ -233,6 +233,7 @@ static void pc_q35_init_1_4(QEMUMachineInitArgs *args)
 {
     has_pvpanic = false;
     x86_cpu_compat_set_features("n270", FEAT_1_ECX, 0, CPUID_EXT_MOVBE);
+    x86_cpu_compat_set_features("Westmere", FEAT_1_ECX, 0, CPUID_EXT_PCLMULQDQ);
     pc_q35_init_1_5(args);
 }