summary refs log tree commit diff stats
path: root/include/qemu
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-04-17 17:59:35 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-04-25 17:09:58 +0200
commit2b7ae6e0f645f3c3676152f3aa7b8c50a091c486 (patch)
treec25d7b481da1b7597e9f619dbfc0239c9ef1f785 /include/qemu
parent0c9d76f519c0f67506d276c0ee5637bac0b40121 (diff)
downloadfocaccia-qemu-2b7ae6e0f645f3c3676152f3aa7b8c50a091c486.tar.gz
focaccia-qemu-2b7ae6e0f645f3c3676152f3aa7b8c50a091c486.zip
qemu: Introduce target_cpu_type()
Introduce the target_cpu_type() helper to access the
CPU_RESOLVING_TYPE target-specific definition from
target-agnostic code.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20250417165430.58213-2-philmd@linaro.org>
Diffstat (limited to 'include/qemu')
-rw-r--r--include/qemu/target-info.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/qemu/target-info.h b/include/qemu/target-info.h
new file mode 100644
index 0000000000..b4cc4888ca
--- /dev/null
+++ b/include/qemu/target-info.h
@@ -0,0 +1,19 @@
+/*
+ * QEMU target info API
+ *
+ *  Copyright (c) Linaro
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef QEMU_TARGET_INFO_H
+#define QEMU_TARGET_INFO_H
+
+/**
+ * target_cpu_type:
+ *
+ * Returns: target CPU base QOM type name (i.e. TYPE_X86_CPU).
+ */
+const char *target_cpu_type(void);
+
+#endif