On Tue, Apr 22, 2025 at 10:41:14AM +0200, Philippe Mathieu-Daudé wrote: > Date: Tue, 22 Apr 2025 10:41:14 +0200 > From: Philippe Mathieu-Daudé <phi...@linaro.org> > Subject: [PATCH] hw/core: Get default_cpu_type calling > machine_class_default_cpu_type() > X-Mailer: git-send-email 2.47.1 > > Since commit 62b4a227a33 the default cpu type can come from the > valid_cpu_types[] array. Call the machine_class_default_cpu_type() > instead of accessing MachineClass::default_cpu_type field. > > Cc: qemu-sta...@nongnu.org > Fixes: 62b4a227a33 ("hw/core: Add machine_class_default_cpu_type()") > Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org> > --- > Cc: Gavin Shan <gs...@redhat.com> > --- > hw/core/machine-qmp-cmds.c | 5 +++-- > target/ppc/cpu_init.c | 2 +- > 2 files changed, 4 insertions(+), 3 deletions(-)
Reviewed-by: Zhao Liu <zhao1....@intel.com>