On 10/9/2026 5:52 PM, Pierrick Bouvier wrote:
Signed-off-by: Pierrick Bouvier <[email protected]>
---
Reviewed-by: Brian Cain <[email protected]>
include/qemu/target-info.h | 7 +++++++
target-info.c | 5 +++++
2 files changed, 12 insertions(+)
diff --git a/include/qemu/target-info.h b/include/qemu/target-info.h
index adda363ac39..862097c6c63 100644
--- a/include/qemu/target-info.h
+++ b/include/qemu/target-info.h
@@ -70,6 +70,13 @@ bool target_aarch64(void);
*/
bool target_m68k(void);
+/**
+ * target_hexagon:
+ *
+ * Returns whether the target architecture is Hexagon.
+ */
+bool target_hexagon(void);
+
/**
* target_or1k:
*
diff --git a/target-info.c b/target-info.c
index ab43c9f802c..0efa4d32546 100644
--- a/target-info.c
+++ b/target-info.c
@@ -68,6 +68,11 @@ bool target_m68k(void)
return target_arch() == SYS_EMU_TARGET_M68K;
}
+bool target_hexagon(void)
+{
+ return target_arch() == SYS_EMU_TARGET_HEXAGON;
+}
+
bool target_or1k(void)
{
return target_arch() == SYS_EMU_TARGET_OR1K;