From 2286fae300b37f4b69ed817d3edea6fe7fa2f52d Mon Sep 17 00:00:00 2001 From: Kim Barrett Date: Fri, 6 Dec 2024 06:32:03 +0000 Subject: [PATCH] 8345159: RISCV: Fix -Wzero-as-null-pointer-constant warning in emit_static_call_stub Reviewed-by: mli, rehn --- src/hotspot/cpu/riscv/macroAssembler_riscv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp b/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp index 44b806834f9..07c5a940a50 100644 --- a/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp +++ b/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp @@ -785,7 +785,7 @@ void MacroAssembler::emit_static_call_stub() { // Jump to the entry point of the c2i stub. int32_t offset = 0; - movptr(t1, 0, offset, t0); // lui + lui + slli + add + movptr2(t1, 0, offset, t0); // lui + lui + slli + add jr(t1, offset); }