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

Commit 0d3c684

Browse files
Merge pull request #14090 from BredPet/interface_dispatch_cell
ARM32: fix interface dispatch cell address transfer
2 parents ccc5e17 + 74478f4 commit 0d3c684

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
@@ -3821,7 +3821,12 @@ GenTree* Lowering::LowerVirtualStubCall(GenTreeCall* call)
38213821
// on x64 we must materialize the target using specific registers.
38223822
addr->gtRegNum = comp->virtualStubParamInfo->GetReg();
38233823

3824+
// On ARM we must use a proper address in R12(thunk register) without dereferencing.
3825+
// So for the jump we use the default register.
3826+
// TODO: specifying register probably unnecessary for other platforms, too.
3827+
#if !defined(_TARGET_UNIX_) && !defined(_TARGET_ARM_)
38243828
indir->gtRegNum = REG_JUMP_THUNK_PARAM;
3829+
#endif
38253830
indir->gtFlags |= GTF_IND_REQ_ADDR_IN_REG;
38263831
#endif
38273832
result = indir;

0 commit comments

Comments
 (0)