hw/core: Introduce MachineClass::get_default_cpu_type() helper
MachineClass::get_default_cpu_type() runs once the machine is created, being able to evaluate runtime checks; it returns the machine 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> Message-Id: <20251020221508.67413-7-philmd@linaro.org>
This commit is contained in:
parent
42a4700bb9
commit
6d06b1e3f6
3 changed files with 17 additions and 1 deletions
|
|
@ -3817,7 +3817,7 @@ void qemu_init(int argc, char **argv)
|
|||
migration_object_init();
|
||||
|
||||
/* parse features once if machine provides default cpu_type */
|
||||
current_machine->cpu_type = machine_class_default_cpu_type(machine_class);
|
||||
current_machine->cpu_type = machine_default_cpu_type(current_machine);
|
||||
if (cpu_option) {
|
||||
current_machine->cpu_type = parse_cpu_option(cpu_option);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue