summary refs log tree commit diff stats
path: root/hw
diff options
context:
space:
mode:
authorHarsh Prateek Bora <harshpb@linux.ibm.com>2025-03-20 14:50:24 +1000
committerNicholas Piggin <npiggin@gmail.com>2025-03-21 13:54:34 +1000
commit1490d0bcdfcb78b4503cae42353d3dd50f4e9d96 (patch)
tree770b7f8b72df57ddc5f8aa79832bbe65c376aebc /hw
parent667413f5bfe3c1c4f082c9534b84e70c1ef3ff3a (diff)
downloadfocaccia-qemu-1490d0bcdfcb78b4503cae42353d3dd50f4e9d96.tar.gz
focaccia-qemu-1490d0bcdfcb78b4503cae42353d3dd50f4e9d96.zip
ppc/spapr: fix default cpu for pre-9.0 machines.
When POWER10 CPU was made as default, we missed keeping POWER9 as
default for older pseries releases (pre-9.0) at that time.
This caused breakge in default cpu evaluation for older pseries
machines and hence this fix.

Fixes: 51113013f3 ("ppc/spapr: change pseries machine default to POWER10 CPU")
Cc: qemu-stable@nongnu.org
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250313094705.2361997-1-harshpb@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/ppc/spapr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 9865d7147f..b0a0f8c689 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -4816,6 +4816,7 @@ static void spapr_machine_8_2_class_options(MachineClass *mc)
 {
     spapr_machine_9_0_class_options(mc);
     compat_props_add(mc->compat_props, hw_compat_8_2, hw_compat_8_2_len);
+    mc->default_cpu_type = POWERPC_CPU_TYPE_NAME("power9_v2.2");
 }
 
 DEFINE_SPAPR_MACHINE(8, 2);