]> git.proxmox.com Git - qemu.git/commitdiff
pc: pc_compat_1_4() now can call pc_compat_1_5()
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 21 Aug 2013 18:14:44 +0000 (15:14 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 21 Aug 2013 20:30:22 +0000 (23:30 +0300)
It just needs to set has_pvpanic=false after calling it. This way, it
won't be a special case anymore.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc_piix.c
hw/i386/pc_q35.c

index a5e5bec037904e3ff37e5c8852d6dff6b97b29e0..d3d48934cae9a79852f451d0dc1919a648e635a4 100644 (file)
@@ -250,8 +250,8 @@ static void pc_compat_1_5(QEMUMachineInitArgs *args)
 
 static void pc_compat_1_4(QEMUMachineInitArgs *args)
 {
-    /* 1.5 was special - it enabled pvpanic in builtin machine */
-    pc_compat_1_6(args);
+    pc_compat_1_5(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);
 }
index f5e0b941e0cb01551a49a1b79e5e456f33472975..198c7851b3493ff8d7253582d4c8862172495415 100644 (file)
@@ -229,8 +229,8 @@ static void pc_compat_1_5(QEMUMachineInitArgs *args)
 
 static void pc_compat_1_4(QEMUMachineInitArgs *args)
 {
-    /* 1.5 was special - it enabled pvpanic in builtin machine */
-    pc_compat_1_6(args);
+    pc_compat_1_5(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);
 }