qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [RFC 7/9] spapr: Remove versions from mc->desc


From: David Gibson
Subject: [Qemu-ppc] [RFC 7/9] spapr: Remove versions from mc->desc
Date: Mon, 30 Nov 2015 19:51:48 +1100

Currently, the versioned spapr machine types put the machine type version
into the description string.  PC does not do this, using just the name
itself to distinguish.  Doing the same lets us simplify the code slightly.

Signed-off-by: David Gibson <address@hidden>
---
 hw/ppc/spapr.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 5a130ff..1a4fe30 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -2337,7 +2337,7 @@ static void spapr_machine_2_5_class_compat(MachineClass 
*mc)
     sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(mc);
 
     smc->dr_lmb_enabled = true;
-    mc->desc = "pSeries Logical Partition (PAPR compliant) v2.5";
+    mc->desc = "pSeries Logical Partition (PAPR compliant)";
     mc->alias = "pseries";
     mc->is_default = 1;
 }
@@ -2358,7 +2358,6 @@ static void spapr_machine_2_4_class_compat(MachineClass 
*mc)
     mc->alias = NULL;
     mc->is_default = 0;
     smc->dr_lmb_enabled = false;
-    mc->desc = "pSeries Logical Partition (PAPR compliant) v2.4";
     SET_MACHINE_COMPAT(mc, SPAPR_COMPAT_2_4);
 }
 
@@ -2385,7 +2384,6 @@ static void 
spapr_machine_2_3_instance_compat(MachineState *machine)
 static void spapr_machine_2_3_class_compat(MachineClass *mc)
 {
     spapr_machine_2_4_class_compat(mc);
-    mc->desc = "pSeries Logical Partition (PAPR compliant) v2.3";
     SET_MACHINE_COMPAT(mc, SPAPR_COMPAT_2_3);
 }
 DEFINE_SPAPR_MACHINE(2_3, "2.3", spapr_machine_2_3_instance_compat);
@@ -2411,7 +2409,6 @@ static void 
spapr_machine_2_2_instance_compat(MachineState *machine)
 static void spapr_machine_2_2_class_compat(MachineClass *mc)
 {
     spapr_machine_2_3_class_compat(mc);
-    mc->desc = "pSeries Logical Partition (PAPR compliant) v2.2";
     SET_MACHINE_COMPAT(mc, SPAPR_COMPAT_2_2);
 }
 DEFINE_SPAPR_MACHINE(2_2, "2.2", spapr_machine_2_2_instance_compat);
@@ -2431,7 +2428,6 @@ static void 
spapr_machine_2_1_instance_compat(MachineState *machine)
 static void spapr_machine_2_1_class_compat(MachineClass *mc)
 {
     spapr_machine_2_2_class_compat(mc);
-    mc->desc = "pSeries Logical Partition (PAPR compliant) v2.1";
     SET_MACHINE_COMPAT(mc, SPAPR_COMPAT_2_1);
 }
 DEFINE_SPAPR_MACHINE(2_1, "2.1", spapr_machine_2_1_instance_compat);
-- 
2.5.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]