Skip to content

Fix clobbering of RhpInterfaceDispatchSlow arguments on riscv64#128374

Merged
jkotas merged 1 commit into
dotnet:mainfrom
maximmenshikov:fix/riscv64_stub_dispatch
Jun 15, 2026
Merged

Fix clobbering of RhpInterfaceDispatchSlow arguments on riscv64#128374
jkotas merged 1 commit into
dotnet:mainfrom
maximmenshikov:fix/riscv64_stub_dispatch

Conversation

@maximmenshikov

Copy link
Copy Markdown
Contributor

The tail pseudo-instruction is expanded by the assembler into
auipc t1, ...
jalr x0, t1, ...
thus the parameter of the thunk's target gets corrupted. Avoid that by using a different scratch register to calculate the address of RhpUniversalTransitionTailCall.

The tail pseudo-instruction is expanded by the assembler into
    auipc t1, ...
    jalr x0, t1, ...
thus the parameter of the thunk's target gets corrupted. Avoid that
by using a different scratch register to calculate the address of
RhpUniversalTransitionTailCall.

Signed-off-by: Maxim Menshikov <maksim.menshikov@nethermind.io>
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label May 19, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke
See info in area-owners.md if you want to be subscribed.

@JulieLeeMSFT

Copy link
Copy Markdown
Member

@jkotas, PTAL.
CC @jakobbotsch.

@jkotas jkotas added the arch-riscv Related to the RISC-V architecture label Jun 15, 2026
@jkotas jkotas merged commit fd3a4f4 into dotnet:main Jun 15, 2026
125 of 128 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-riscv Related to the RISC-V architecture area-VM-coreclr community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants