Now that we implemented the new filtering logic based on TYPE_TARGET_SPECIFIC, we don't need target_machine_typename anymore.
Signed-off-by: Pierrick Bouvier <[email protected]> --- target-info-qom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target-info-qom.c b/target-info-qom.c index 67102c31a80..7ee2614b324 100644 --- a/target-info-qom.c +++ b/target-info-qom.c @@ -13,6 +13,7 @@ #include "qemu/target-info-init.h" #include "qemu/target-info-qom.h" #include "hw/arm/machines-qom.h" +#include "hw/core/boards.h" #include "hw/riscv/machines-qom.h" static const TypeInfo target_info_types[] = { @@ -67,7 +68,7 @@ static GSList *filter_types_available(GSList *types) GSList *get_machine_types_available(void) { - GSList *machines = object_class_get_list_sorted(target_machine_typename(), false); + GSList *machines = object_class_get_list_sorted(TYPE_MACHINE, false); return filter_types_available(machines); } -- 2.43.0
