Skip to content

Commit

Permalink
Use x9, comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Oct 14, 2024
1 parent c8d8fdc commit 1bab811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/riscv/c1_CodeStubs_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void RangeCheckStub::emit_code(LIR_Assembler* ce) {
}
// t0 and t1 are used as args in generate_exception_throw,
// so use x18 as the tmp register for rt_call.
__ rt_call(Runtime1::entry_for(stub_id), x18);
__ rt_call(Runtime1::entry_for(stub_id), x9);
ce->add_call_info_here(_info);
ce->verify_oop_map(_info);
debug_only(__ should_not_reach_here());
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/cpu/riscv/templateTable_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ void TemplateTable::wide_aload() {
}

void TemplateTable::index_check(Register array, Register index) {
// destroys x11, t0
// destroys x11, t0, t1
// sign extend index for use by indexed load
// check index
const Register length = t0;
Expand Down

0 comments on commit 1bab811

Please sign in to comment.