We'll now clean all target specific interfaces. For this, we need to be
able to replace them with our new TYPE_TARGET_SPECIFIC interface.
Define a global array to be referenced by all concerned types.

Signed-off-by: Pierrick Bouvier <[email protected]>
---
 include/qemu/target-info-qom.h | 2 ++
 target-info-qom.c              | 5 +++++
 2 files changed, 7 insertions(+)

diff --git a/include/qemu/target-info-qom.h b/include/qemu/target-info-qom.h
index 9f175bed057..842cf241e0a 100644
--- a/include/qemu/target-info-qom.h
+++ b/include/qemu/target-info-qom.h
@@ -49,4 +49,6 @@ void target_info_qom_set_target(void);
  */
 GSList *get_machine_types_available(void);
 
+extern const InterfaceInfo type_target_specific[];
+
 #endif /* QEMU_TARGET_INFO_QOM_H */
diff --git a/target-info-qom.c b/target-info-qom.c
index 7ee2614b324..9089ef336a7 100644
--- a/target-info-qom.c
+++ b/target-info-qom.c
@@ -16,6 +16,11 @@
 #include "hw/core/boards.h"
 #include "hw/riscv/machines-qom.h"
 
+const InterfaceInfo type_target_specific[] = {
+    { TYPE_TARGET_SPECIFIC },
+    { }
+};
+
 static const TypeInfo target_info_types[] = {
     {
         .name           = TYPE_TARGET_SPECIFIC,
-- 
2.43.0


Reply via email to