From 135686b072597e77bae9351cacfe0f65ceaf5bc4 Mon Sep 17 00:00:00 2001 From: Robbin Ehn Date: Mon, 14 Oct 2024 13:28:08 +0200 Subject: [PATCH] Updated assert --- 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 6c99b95dbd833..afdb483bb50f3 100644 --- a/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp +++ b/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp @@ -969,8 +969,8 @@ void MacroAssembler::j(const address dest, Register temp) { if (is_simm21(distance) && ((distance % 2) == 0)) { Assembler::jal(x0, distance); } else { - assert(temp != x5 && temp != x1, "Register x5/x1 not used for jumps."); assert(temp != noreg && temp != x0, "Expecting a register"); + assert(temp != x1 && temp != x5, "temp register must not be x1/x5."); int32_t offset = 0; la(temp, dest, offset); jr(temp, offset);