From 548d09b28233812980342203e68822da526d7862 Mon Sep 17 00:00:00 2001 From: Robbin Ehn Date: Thu, 26 Sep 2024 12:12:33 +0200 Subject: [PATCH] Default t1 --- src/hotspot/cpu/riscv/macroAssembler_riscv.hpp | 2 +- .../riscv/templateInterpreterGenerator_riscv.cpp | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/hotspot/cpu/riscv/macroAssembler_riscv.hpp b/src/hotspot/cpu/riscv/macroAssembler_riscv.hpp index 7d83e13137079..c83d6eb8213da 100644 --- a/src/hotspot/cpu/riscv/macroAssembler_riscv.hpp +++ b/src/hotspot/cpu/riscv/macroAssembler_riscv.hpp @@ -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); diff --git a/src/hotspot/cpu/riscv/templateInterpreterGenerator_riscv.cpp b/src/hotspot/cpu/riscv/templateInterpreterGenerator_riscv.cpp index 53813bf3fcd6f..6e348dbcefe56 100644 --- a/src/hotspot/cpu/riscv/templateInterpreterGenerator_riscv.cpp +++ b/src/hotspot/cpu/riscv/templateInterpreterGenerator_riscv.cpp @@ -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(); @@ -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(); @@ -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(); @@ -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(); @@ -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(); @@ -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(); @@ -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) {