Skip to content

Commit

Permalink
Default t1
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Sep 26, 2024
1 parent 22a6c79 commit 548d09b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/riscv/macroAssembler_riscv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ class MacroAssembler: public Assembler {
void jr(Register Rd, int32_t offset = 0);

// call: la + jalr x1
void call(const address dest, Register temp);
void call(const address dest, Register temp = t1);

// jalr: jalr x1, offset(rs)
void jalr(Register Rs, int32_t offset = 0);
Expand Down
14 changes: 7 additions & 7 deletions src/hotspot/cpu/riscv/templateInterpreterGenerator_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ address TemplateInterpreterGenerator::generate_math_entry(AbstractInterpreter::M
} else {
fn = CAST_FROM_FN_PTR(address, StubRoutines::dsin());
}
__ call(fn, t1);
__ call(fn);
break;
case Interpreter::java_lang_math_cos :
entry_point = __ pc();
Expand All @@ -203,7 +203,7 @@ address TemplateInterpreterGenerator::generate_math_entry(AbstractInterpreter::M
} else {
fn = CAST_FROM_FN_PTR(address, StubRoutines::dcos());
}
__ call(fn, t1);
__ call(fn);
break;
case Interpreter::java_lang_math_tan :
entry_point = __ pc();
Expand All @@ -216,7 +216,7 @@ address TemplateInterpreterGenerator::generate_math_entry(AbstractInterpreter::M
} else {
fn = CAST_FROM_FN_PTR(address, StubRoutines::dtan());
}
__ call(fn, t1);
__ call(fn);
break;
case Interpreter::java_lang_math_log :
entry_point = __ pc();
Expand All @@ -229,7 +229,7 @@ address TemplateInterpreterGenerator::generate_math_entry(AbstractInterpreter::M
} else {
fn = CAST_FROM_FN_PTR(address, StubRoutines::dlog());
}
__ call(fn, t1);
__ call(fn);
break;
case Interpreter::java_lang_math_log10 :
entry_point = __ pc();
Expand All @@ -242,7 +242,7 @@ address TemplateInterpreterGenerator::generate_math_entry(AbstractInterpreter::M
} else {
fn = CAST_FROM_FN_PTR(address, StubRoutines::dlog10());
}
__ call(fn, t1);
__ call(fn);
break;
case Interpreter::java_lang_math_exp :
entry_point = __ pc();
Expand All @@ -255,7 +255,7 @@ address TemplateInterpreterGenerator::generate_math_entry(AbstractInterpreter::M
} else {
fn = CAST_FROM_FN_PTR(address, StubRoutines::dexp());
}
__ call(fn, t1);
__ call(fn);
break;
case Interpreter::java_lang_math_pow :
entry_point = __ pc();
Expand All @@ -269,7 +269,7 @@ address TemplateInterpreterGenerator::generate_math_entry(AbstractInterpreter::M
} else {
fn = CAST_FROM_FN_PTR(address, StubRoutines::dpow());
}
__ call(fn, t1);
__ call(fn);
break;
case Interpreter::java_lang_math_fmaD :
if (UseFMA) {
Expand Down

0 comments on commit 548d09b

Please sign in to comment.