summary refs log tree commit diff stats
path: root/target-info-stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-info-stub.c')
-rw-r--r--target-info-stub.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/target-info-stub.c b/target-info-stub.c
index e5d2195e89..773a10188c 100644
--- a/target-info-stub.c
+++ b/target-info-stub.c
@@ -8,8 +8,18 @@
 
 #include "qemu/osdep.h"
 #include "qemu/target-info.h"
+#include "qemu/target-info-impl.h"
 #include "cpu.h"
 
+static const TargetInfo target_info_stub = {
+    .target_name = TARGET_NAME,
+};
+
+const TargetInfo *target_info(void)
+{
+    return &target_info_stub;
+}
+
 const char *target_cpu_type(void)
 {
     return CPU_RESOLVING_TYPE;