a81953e
From: Justin M. Forbes <jforbes@redhat.com>
a81953e
Date: Thu, Aug 19 09:13:45 2010 -0500
a81953e
Subject: pc: Add a Fedora-13 machine type for backwards compatibility.
a81953e
a81953e
In Fedora 13 a fedora-13 machine type was added as default to allow
a81953e
interaction with upstream stable qemu which did not support the same
a81953e
feature set.  As a result we need to support this machine type through
a81953e
the Fedora 15 release.
a81953e
a81953e
a81953e
diff --git a/hw/pc_piix.c b/hw/pc_piix.c
a81953e
index 9e4bac8..eb1ed05 100644
a81953e
--- a/hw/pc_piix.c
a81953e
+++ b/hw/pc_piix.c
6a630c5
@@ -266,6 +266,14 @@ static QEMUMachine pc_machine_v0_13 = {
6a630c5
     },
a81953e
 };
6a630c5
 
a81953e
+static QEMUMachine pc_machine_f13 = {
a81953e
+    .name = "fedora-13",
a81953e
+    .desc = "Standard PC",
a81953e
+    .init = pc_init_pci,
a81953e
+    .max_cpus = 255,
a81953e
+    .is_default = 0,
a81953e
+};
a81953e
+
a81953e
 static QEMUMachine pc_machine_v0_12 = {
a81953e
     .name = "pc-0.12",
a81953e
     .desc = "Standard PC",
6a630c5
@@ -397,6 +405,7 @@ static QEMUMachine isapc_machine = {
a81953e
 static void pc_machine_init(void)
a81953e
 {
a81953e
     qemu_register_machine(&pc_machine);
a81953e
+    qemu_register_machine(&pc_machine_f13);
6a630c5
     qemu_register_machine(&pc_machine_v0_13);
a81953e
     qemu_register_machine(&pc_machine_v0_12);
a81953e
     qemu_register_machine(&pc_machine_v0_11);