From cd7fb3d09024d08a7fc584103afcc53daf5e8923 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 15 Aug 2023 12:15:45 +0900 Subject: [PATCH] aot: Disable musttail for mips (#2457) Fixes https://github.com/bytecodealliance/wasm-micro-runtime/issues/2412 --- core/iwasm/compilation/aot_llvm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/iwasm/compilation/aot_llvm.c b/core/iwasm/compilation/aot_llvm.c index b47c198c34..fb9fc0be4a 100644 --- a/core/iwasm/compilation/aot_llvm.c +++ b/core/iwasm/compilation/aot_llvm.c @@ -146,6 +146,13 @@ aot_target_precheck_can_use_musttail(const AOTCompContext *comp_ctx) */ return false; } + if (!strcmp(comp_ctx->target_arch, "mips")) { + /* + * cf. + * https://github.com/bytecodealliance/wasm-micro-runtime/issues/2412 + */ + return false; + } /* * x86-64/i386: true *