]> git.proxmox.com Git - mirror_qemu.git/commit
hw/arm/aspeed: Check for CPU types in machine_run_board_init()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 25 Jan 2024 05:55:44 +0000 (06:55 +0100)
committerCédric Le Goater <clg@kaod.org>
Thu, 1 Feb 2024 07:13:30 +0000 (08:13 +0100)
commitdc13909ed03c05275deb32512e9d8f8e34d79c3b
treec8782b82aef24eb3965411c40bf806f579e62142
parentd815649c512fc785508315ead66a43385cf55bfb
hw/arm/aspeed: Check for CPU types in machine_run_board_init()

Aspeed SoCs use a single CPU type (set as AspeedSoCClass::cpu_type).
Convert it to a NULL-terminated array (of a single non-NULL element).

Set MachineClass::valid_cpu_types[] to use the common machine code
to provide hints when the requested CPU is invalid (see commit
e702cbc19e ("machine: Improve is_cpu_type_supported()").

Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/arm/aspeed.c
hw/arm/aspeed_ast10x0.c
hw/arm/aspeed_ast2400.c
hw/arm/aspeed_ast2600.c
hw/arm/aspeed_soc_common.c
include/hw/arm/aspeed_soc.h