diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-11-16 17:33:12 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-05 16:20:14 +0100 |
commit | 62b4a227a330c76f5a7bac5d0ba903dfd1c3c9c1 (patch) | |
tree | efc4112ee4179eccc4a79c96515710dcd73333a7 /include | |
parent | 4b26aa9f3a9a1f1e84f95e7462d1b3d893315b91 (diff) | |
download | qemu-62b4a227a330c76f5a7bac5d0ba903dfd1c3c9c1.zip qemu-62b4a227a330c76f5a7bac5d0ba903dfd1c3c9c1.tar.gz qemu-62b4a227a330c76f5a7bac5d0ba903dfd1c3c9c1.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/boards.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h index 8af165f..bcfde8a 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -24,6 +24,12 @@ OBJECT_DECLARE_TYPE(MachineState, MachineClass, MACHINE) extern MachineState *current_machine; +/** + * machine_class_default_cpu_type: Return the machine default CPU type. + * @mc: Machine class + */ +const char *machine_class_default_cpu_type(MachineClass *mc); + void machine_add_audiodev_property(MachineClass *mc); void machine_run_board_init(MachineState *machine, const char *mem_path, Error **errp); bool machine_usb(MachineState *machine); |