]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/core: Get default_cpu_type calling machine_class_default_cpu_type()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 22 Apr 2025 08:32:31 +0000 (10:32 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 29 Apr 2025 07:01:21 +0000 (10:01 +0300)
commite6e49667ae966037e3c4c682ec6275dc3128d459
tree6686d9fc89057f86ad8812a5772acbde28dc9cb6
parent9f8bb7edacd4f5833740fe6d81509d5396f8b7cc
hw/core: Get default_cpu_type calling machine_class_default_cpu_type()

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-stable@nongnu.org
Fixes: 62b4a227a33 ("hw/core: Add machine_class_default_cpu_type()")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Message-Id: <20250422084114.39499-1-philmd@linaro.org>
(cherry picked from commit d5f241834be1b323ea697a469ff0f1335a1823fe)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/core/machine-qmp-cmds.c
target/ppc/cpu_init.c