Message ID | 20250418172908.25147-6-philmd@linaro.org |
---|---|
State | New |
Headers | show |
Series | single-binary: Make hw/arm/ common | expand |
On 4/18/25 10:28, Philippe Mathieu-Daudé wrote: > When we'll start to use target_machine_typename() to filter > machines for the ARM/Aarch64 binaries, the 'none' machine > will be filtered out. Register the proper interfaces to keep > it available. > > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> > --- > hw/core/null-machine.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/hw/core/null-machine.c b/hw/core/null-machine.c > index 1ccaf652eb4..dd56d7cb7e5 100644 > --- a/hw/core/null-machine.c > +++ b/hw/core/null-machine.c > @@ -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) > { > @@ -62,6 +63,11 @@ static const TypeInfo null_machine_types[] = { > .name = MACHINE_TYPE_NAME("none"), > .parent = TYPE_MACHINE, > .class_init = null_machine_class_init, > + .interfaces = (InterfaceInfo[]) { > + { TYPE_TARGET_ARM_MACHINE }, > + { TYPE_TARGET_AARCH64_MACHINE }, > + { }, > + }, > }, > }; > Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
diff --git a/hw/core/null-machine.c b/hw/core/null-machine.c index 1ccaf652eb4..dd56d7cb7e5 100644 --- a/hw/core/null-machine.c +++ b/hw/core/null-machine.c @@ -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) { @@ -62,6 +63,11 @@ static const TypeInfo null_machine_types[] = { .name = MACHINE_TYPE_NAME("none"), .parent = TYPE_MACHINE, .class_init = null_machine_class_init, + .interfaces = (InterfaceInfo[]) { + { TYPE_TARGET_ARM_MACHINE }, + { TYPE_TARGET_AARCH64_MACHINE }, + { }, + }, }, };
When we'll start to use target_machine_typename() to filter machines for the ARM/Aarch64 binaries, the 'none' machine will be filtered out. Register the proper interfaces to keep it available. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- hw/core/null-machine.c | 6 ++++++ 1 file changed, 6 insertions(+)