Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 150a9b4

Browse files
committed
ARM32: fix interface dispatch cell address transfer
Signed-off-by: Petr Bred <[email protected]>
1 parent 6a1c28f commit 150a9b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/jit/lower.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3803,7 +3803,11 @@ GenTree* Lowering::LowerVirtualStubCall(GenTreeCall* call)
38033803
// on x64 we must materialize the target using specific registers.
38043804
addr->gtRegNum = comp->virtualStubParamInfo->GetReg();
38053805

3806+
// On ARM we must use a proper address in R12(thunk register) without dereferencing.
3807+
// So for the jump we use the default register.
3808+
#ifndef _TARGET_ARM_
38063809
indir->gtRegNum = REG_JUMP_THUNK_PARAM;
3810+
#endif
38073811
indir->gtFlags |= GTF_IND_REQ_ADDR_IN_REG;
38083812
#endif
38093813
result = indir;

0 commit comments

Comments
 (0)