Skip to content

Commit a637ccf

Browse files
committed
8349851: RISC-V: Call VM leaf can use movptr2
Reviewed-by: fyang, mli
1 parent adc3f53 commit a637ccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/cpu/riscv/macroAssembler_riscv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ void MacroAssembler::call_VM_leaf_base(address entry_point,
793793
Label *retaddr) {
794794
int32_t offset = 0;
795795
push_reg(RegSet::of(t1, xmethod), sp); // push << t1 & xmethod >> to sp
796-
mv(t1, entry_point, offset);
796+
movptr(t1, entry_point, offset, t0);
797797
jalr(t1, offset);
798798
if (retaddr != nullptr) {
799799
bind(*retaddr);

0 commit comments

Comments
 (0)