Signed-off-by: Pierrick Bouvier <[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 b23e5bc5865..c7b3fda3b22 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 012b384036d..f3d98998ebb 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()) {
-- 
2.43.0


Reply via email to