8349851: RISC-V: Call VM leaf can use movptr2

Reviewed-by: fyang, mli
This commit is contained in:
Robbin Ehn 2025-02-13 06:36:32 +00:00
parent adc3f53d24
commit a637ccf2fe

View File

@ -793,7 +793,7 @@ void MacroAssembler::call_VM_leaf_base(address entry_point,
Label *retaddr) {
int32_t offset = 0;
push_reg(RegSet::of(t1, xmethod), sp); // push << t1 & xmethod >> to sp
mv(t1, entry_point, offset);
movptr(t1, entry_point, offset, t0);
jalr(t1, offset);
if (retaddr != nullptr) {
bind(*retaddr);