diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-23 22:46:34 +0100 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-04-30 12:51:51 -0700 |
| commit | 28502121be7b1422af55bbed6f65a273b889ef01 (patch) | |
| tree | cab367c0655a7f06621660a7d013de82cc89aaf8 /target-info-stub.c | |
| parent | 5e5a9aea793cfd67541153105b6046436f6ae4a8 (diff) | |
| download | focaccia-qemu-28502121be7b1422af55bbed6f65a273b889ef01.tar.gz focaccia-qemu-28502121be7b1422af55bbed6f65a273b889ef01.zip | |
system/vl: Filter machine list available for a particular target binary
Binaries can register a QOM type to filter their machines by filling their TargetInfo::machine_typename field. This can be used by example by main() -> machine_help_func() to filter the machines list. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target-info-stub.c')
| -rw-r--r-- | target-info-stub.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-info-stub.c b/target-info-stub.c index 773a10188c..bcf834f71d 100644 --- a/target-info-stub.c +++ b/target-info-stub.c @@ -9,10 +9,12 @@ #include "qemu/osdep.h" #include "qemu/target-info.h" #include "qemu/target-info-impl.h" +#include "hw/boards.h" #include "cpu.h" static const TargetInfo target_info_stub = { .target_name = TARGET_NAME, + .machine_typename = TYPE_MACHINE, }; const TargetInfo *target_info(void) |