Commit b63e0f6a49 for qemu.org

commit b63e0f6a4950d288018298c5596ed4b2a67226eb
Author: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Date:   Wed Sep 30 02:00:52 2026 +0000

    target-info: add target_m68k

    Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Link: https://lore.kernel.org/qemu-devel/20260930020108.217892-6-pierrick.bouvier@oss.qualcomm.com
    Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>

diff --git a/include/qemu/target-info.h b/include/qemu/target-info.h
index b23e5bc586..c7b3fda3b2 100644
--- a/include/qemu/target-info.h
+++ b/include/qemu/target-info.h
@@ -63,6 +63,13 @@ bool target_arm(void);
  */
 bool target_aarch64(void);

+/**
+ * target_m68k:
+ *
+ * Returns whether the target architecture is M68K.
+ */
+bool target_m68k(void);
+
 /**
  * target_base_ppc:
  *
diff --git a/target-info.c b/target-info.c
index 012b384036..f3d98998eb 100644
--- a/target-info.c
+++ b/target-info.c
@@ -63,6 +63,11 @@ bool target_aarch64(void)
     return target_arch() == SYS_EMU_TARGET_AARCH64;
 }

+bool target_m68k(void)
+{
+    return target_arch() == SYS_EMU_TARGET_M68K;
+}
+
 bool target_base_ppc(void)
 {
     switch (target_arch()) {