hw/core: Allow ARM/Aarch64 binaries to use the 'none' machine

When we'll start to use target_machine_typename() to filter
machines for the ARM/Aarch64 binaries, the 'none' machine
would be filtered. Register the proper interfaces to keep
it available.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Pierrick Bouvier <[email protected]>
Acked-by: Peter Maydell <[email protected]>
Message-Id: <[email protected]>
This commit is contained in:
Philippe Mathieu-Daudé committed 2025-10-29 19:15:43 +01:00
1 parent 5de9216064
commit eb796c5551
1 file changed
+5 -1
+5 -1
View File
@@ -16,6 +16,7 @@
#include "hw/boards.h"
#include "system/address-spaces.h"
#include "hw/core/cpu.h"
#include "hw/arm/machines-qom.h"
static void machine_none_init(MachineState *mch)
{
@@ -55,4 +56,7 @@ static void machine_none_machine_init(MachineClass *mc)
mc->no_cdrom = 1;
}
DEFINE_MACHINE("none", machine_none_machine_init)
DEFINE_MACHINE_WITH_INTERFACES("none", machine_none_machine_init,
{ TYPE_TARGET_AARCH64_MACHINE },
{ TYPE_TARGET_ARM_MACHINE },
{ })