hw/arm/virt: Check CPU type in machine_run_board_init()
commitfa8c61779183f65d3d4bbc0b00a1a9a9f6a5c57e
authorGavin Shan <gshan@redhat.com>
Mon, 4 Dec 2023 00:47:23 +0000 (4 10:47 +1000)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 5 Jan 2024 15:20:15 +0000 (5 16:20 +0100)
tree739b02ad19c75325bed0a1b61b789866e737c89b
parent4eab51a32acbeeb35de8080dceb92d6e3cdaa3d3
hw/arm/virt: Check CPU type in machine_run_board_init()

Set mc->valid_cpu_types so that the user specified CPU type can be
validated in machine_run_board_init(). We needn't to do the check
by ourselves.

Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20231204004726.483558-7-gshan@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/arm/virt.c