mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
4b26aa9f3a
commit
62b4a227a3
3 changed files with 15 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue