From 1bab8119892c90118f745ab77be0bdba9ac06da7 Mon Sep 17 00:00:00 2001 From: Robbin Ehn Date: Mon, 14 Oct 2024 12:47:55 +0200 Subject: [PATCH] Use x9, comment update --- src/hotspot/cpu/riscv/c1_CodeStubs_riscv.cpp | 2 +- src/hotspot/cpu/riscv/templateTable_riscv.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/cpu/riscv/c1_CodeStubs_riscv.cpp b/src/hotspot/cpu/riscv/c1_CodeStubs_riscv.cpp index e737daf6ddfe7..6a133f8320ed6 100644 --- a/src/hotspot/cpu/riscv/c1_CodeStubs_riscv.cpp +++ b/src/hotspot/cpu/riscv/c1_CodeStubs_riscv.cpp @@ -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()); diff --git a/src/hotspot/cpu/riscv/templateTable_riscv.cpp b/src/hotspot/cpu/riscv/templateTable_riscv.cpp index 2520bd9b565ae..4616cb7bc9ed4 100644 --- a/src/hotspot/cpu/riscv/templateTable_riscv.cpp +++ b/src/hotspot/cpu/riscv/templateTable_riscv.cpp @@ -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;