summary refs log tree commit diff stats
path: root/target-info-stub.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-04-29 20:18:03 +0200
committerRichard Henderson <richard.henderson@linaro.org>2025-04-30 12:51:51 -0700
commitb113dfa081a6a7e061551a70e6ede7af0941a845 (patch)
tree1398a750b534b329320256532be352b9877a79d3 /target-info-stub.c
parent28502121be7b1422af55bbed6f65a273b889ef01 (diff)
downloadfocaccia-qemu-b113dfa081a6a7e061551a70e6ede7af0941a845.tar.gz
focaccia-qemu-b113dfa081a6a7e061551a70e6ede7af0941a845.zip
qemu/target_info: Add %target_cpu_type field to TargetInfo
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'target-info-stub.c')
-rw-r--r--target-info-stub.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/target-info-stub.c b/target-info-stub.c
index bcf834f71d..86da297277 100644
--- a/target-info-stub.c
+++ b/target-info-stub.c
@@ -14,6 +14,7 @@
 
 static const TargetInfo target_info_stub = {
     .target_name = TARGET_NAME,
+    .cpu_type = CPU_RESOLVING_TYPE,
     .machine_typename = TYPE_MACHINE,
 };
 
@@ -21,8 +22,3 @@ const TargetInfo *target_info(void)
 {
     return &target_info_stub;
 }
-
-const char *target_cpu_type(void)
-{
-    return CPU_RESOLVING_TYPE;
-}