From 5a06ec4113f1f2eefbb1fd754b305ef569d66b34 Mon Sep 17 00:00:00 2001 From: Vlad Brezae Date: Wed, 15 Oct 2025 13:17:11 +0300 Subject: [PATCH] [clr-interp] Fix cconv issue in InterpreterStub on linux-x64 It seems like this code was copied over from windows version, with minor oversight leading to passing first arg in rcx instead of rdi. --- src/coreclr/vm/amd64/asmhelpers.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/vm/amd64/asmhelpers.S b/src/coreclr/vm/amd64/asmhelpers.S index b1a09405818f54..0c657bcc13a9b5 100644 --- a/src/coreclr/vm/amd64/asmhelpers.S +++ b/src/coreclr/vm/amd64/asmhelpers.S @@ -451,7 +451,7 @@ NESTED_ENTRY InterpreterStub, _TEXT, NoHandler jnz LOCAL_LABEL(HaveInterpThreadContext) LOCAL_LABEL(NoManagedThread): - mov rcx, r10 + mov rdi, r10 call C_FUNC(GetInterpThreadContextWithPossiblyMissingThread) LOCAL_LABEL(HaveInterpThreadContext):