diff --git a/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp b/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp index 15f72b52411..884d0413c32 100644 --- a/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp +++ b/src/hotspot/cpu/riscv/macroAssembler_riscv.cpp @@ -1059,7 +1059,7 @@ void MacroAssembler::wrap_label(Register r1, Register r2, Label &L, csrr(Rd, CSR); \ } - INSN(rdinstret, CSR_INSTERT); + INSN(rdinstret, CSR_INSTRET); INSN(rdcycle, CSR_CYCLE); INSN(rdtime, CSR_TIME); INSN(frcsr, CSR_FCSR); diff --git a/src/hotspot/cpu/riscv/register_riscv.hpp b/src/hotspot/cpu/riscv/register_riscv.hpp index 0f345bba33a..7b547335cd0 100644 --- a/src/hotspot/cpu/riscv/register_riscv.hpp +++ b/src/hotspot/cpu/riscv/register_riscv.hpp @@ -41,7 +41,7 @@ #define CSR_VLENB 0xC22 // VLEN/8 (vector register length in bytes) #define CSR_CYCLE 0xc00 // Cycle counter for RDCYCLE instruction. #define CSR_TIME 0xc01 // Timer for RDTIME instruction. -#define CSR_INSTERT 0xc02 // Instructions-retired counter for RDINSTRET instruction. +#define CSR_INSTRET 0xc02 // Instructions-retired counter for RDINSTRET instruction. class VMRegImpl; typedef VMRegImpl* VMReg;