summary refs log tree commit diff stats
path: root/linux-user/m68k/elfload.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/m68k/elfload.c')
-rw-r--r--linux-user/m68k/elfload.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/linux-user/m68k/elfload.c b/linux-user/m68k/elfload.c
new file mode 100644
index 0000000000..561ac5b3b3
--- /dev/null
+++ b/linux-user/m68k/elfload.c
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include "qemu/osdep.h"
+#include "qemu.h"
+#include "loader.h"
+#include "elf.h"
+
+
+const char *get_elf_cpu_model(uint32_t eflags)
+{
+    if (eflags == 0 || (eflags & EF_M68K_M68000)) {
+        /* 680x0 */
+        return "m68040";
+    }
+
+    /* Coldfire */
+    return "any";
+}