Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
include/qemu/target_info-qom.h | 20 ++++++++++++++++++++
target_info-qom.c | 8 ++++++++
2 files changed, 28 insertions(+)
diff --git a/include/qemu/target_info-qom.h b/include/qemu/target_info-qom.h
index c87d47acf66..880b34e699e 100644
--- a/include/qemu/target_info-qom.h
+++ b/include/qemu/target_info-qom.h
@@ -9,6 +9,26 @@
#ifndef QEMU_TARGET_INFO_QOM_H
#define QEMU_TARGET_INFO_QOM_H
+#include "qom/object.h"
+
#define TYPE_LEGACY_BINARY_PREFIX "legacy-binary-"
+#define TYPE_LEGACY_BINARY_QEMU_SYSTEM_ARM \
+ "legacy-binary-qemu-system-arm"
+#define TYPE_LEGACY_BINARY_QEMU_SYSTEM_AARCH64 \
+ "legacy-binary-qemu-system-aarch64"
+
+#define LEGACY_BINARY_QEMU_SYSTEM_ARM_INTERFACE \
+ (InterfaceInfo[]) { \
+ { TYPE_LEGACY_BINARY_QEMU_SYSTEM_ARM }, \
+ { TYPE_LEGACY_BINARY_QEMU_SYSTEM_AARCH64 }, \
+ { }, \
+ }
+
+#define LEGACY_BINARY_QEMU_SYSTEM_AARCH64_INTERFACE \
+ (InterfaceInfo[]) { \
+ { TYPE_LEGACY_BINARY_QEMU_SYSTEM_AARCH64 }, \
+ { }, \
+ }
+
#endif
diff --git a/target_info-qom.c b/target_info-qom.c
index 6970b95ee0b..db3054c307d 100644
--- a/target_info-qom.c
+++ b/target_info-qom.c
@@ -10,6 +10,14 @@
#include "qemu/target_info-qom.h"
static const TypeInfo target_info_types[] = {
+ {
+ .name = TYPE_LEGACY_BINARY_QEMU_SYSTEM_ARM,
+ .parent = TYPE_INTERFACE,
+ },
+ {
+ .name = TYPE_LEGACY_BINARY_QEMU_SYSTEM_AARCH64,
+ .parent = TYPE_INTERFACE,
+ },
};
DEFINE_TYPES(target_info_types)
--
2.47.1