diff options
Diffstat (limited to 'src/arch.c')
-rw-r--r-- | src/arch.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -36,6 +36,7 @@ #include "arch-arm.h" #include "arch-aarch64.h" #include "arch-loongarch64.h" +#include "arch-m68k.h" #include "arch-mips.h" #include "arch-mips64.h" #include "arch-mips64n32.h" @@ -66,6 +67,8 @@ const struct arch_def *arch_def_native = &arch_def_arm; const struct arch_def *arch_def_native = &arch_def_aarch64; #elif __loongarch_lp64 const struct arch_def *arch_def_native = &arch_def_loongarch64; +#elif __m68k__ +const struct arch_def *arch_def_native = &arch_def_m68k; #elif __mips__ && _MIPS_SIM == _MIPS_SIM_ABI32 #if __MIPSEB__ const struct arch_def *arch_def_native = &arch_def_mips; @@ -146,6 +149,8 @@ const struct arch_def *arch_def_lookup(uint32_t token) return &arch_def_aarch64; case SCMP_ARCH_LOONGARCH64: return &arch_def_loongarch64; + case SCMP_ARCH_M68K: + return &arch_def_m68k; case SCMP_ARCH_MIPS: return &arch_def_mips; case SCMP_ARCH_MIPSEL: @@ -204,6 +209,8 @@ const struct arch_def *arch_def_lookup_name(const char *arch_name) return &arch_def_aarch64; else if (strcmp(arch_name, "loongarch64") == 0) return &arch_def_loongarch64; + else if (strcmp(arch_name, "m68k") == 0) + return &arch_def_m68k; else if (strcmp(arch_name, "mips") == 0) return &arch_def_mips; else if (strcmp(arch_name, "mipsel") == 0) |