hw/core: Add machine_class_default_cpu_type()
commit62b4a227a330c76f5a7bac5d0ba903dfd1c3c9c1
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 16 Nov 2023 16:33:12 +0000 (16 17:33 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 5 Jan 2024 15:20:14 +0000 (5 16:20 +0100)
treeefc4112ee4179eccc4a79c96515710dcd73333a7
parent4b26aa9f3a9a1f1e84f95e7462d1b3d893315b91
hw/core: Add machine_class_default_cpu_type()

Add a helper to return a machine default CPU type.

If this machine is restricted to a single CPU type,
use it as default, obviously.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231116163726.28952-1-philmd@linaro.org>
hw/core/machine.c
include/hw/boards.h
system/vl.c