]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/core/machine: Allow dynamic registration of valid CPU types
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 3 Apr 2025 22:54:15 +0000 (00:54 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 21 Oct 2025 18:09:56 +0000 (20:09 +0200)
commit42a4700bb9c6e9424b3ed12f041209e0770f971c
tree466b78366706bb53d80cdd77d0055246725fbe20
parent2c6fab1c143059e59128b805f4e6a6796eedee43
hw/core/machine: Allow dynamic registration of valid CPU types

Add MachineClass::get_valid_cpu_types(), a helper that
returns a dynamic list of CPU types. Since the helper
takes a MachineState argument, we know the machine is
created by the time we call it.

Suggested-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20251020220941.65269-4-philmd@linaro.org>
hw/core/machine.c
include/hw/boards.h