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

Commit 050fb2a

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/jit/lower.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3803,7 +3803,12 @@ 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+
// TODO: specifying register probably unnecessary for other platforms, too.
3809+
#ifndef _TARGET_ARM_
38063810
indir->gtRegNum = REG_JUMP_THUNK_PARAM;
3811+
#endif
38073812
indir->gtFlags |= GTF_IND_REQ_ADDR_IN_REG;
38083813
#endif
38093814
result = indir;

0 commit comments

Comments
 (0)