Skip to content

Commit 303c61f

Browse files
committed
8302776: RISC-V: Fix typo CSR_INSTERT to CSR_INSTRET
Reviewed-by: fyang
1 parent 7c40c8a commit 303c61f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hotspot/cpu/riscv/macroAssembler_riscv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ void MacroAssembler::wrap_label(Register r1, Register r2, Label &L,
10591059
csrr(Rd, CSR); \
10601060
}
10611061

1062-
INSN(rdinstret, CSR_INSTERT);
1062+
INSN(rdinstret, CSR_INSTRET);
10631063
INSN(rdcycle, CSR_CYCLE);
10641064
INSN(rdtime, CSR_TIME);
10651065
INSN(frcsr, CSR_FCSR);

src/hotspot/cpu/riscv/register_riscv.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#define CSR_VLENB 0xC22 // VLEN/8 (vector register length in bytes)
4242
#define CSR_CYCLE 0xc00 // Cycle counter for RDCYCLE instruction.
4343
#define CSR_TIME 0xc01 // Timer for RDTIME instruction.
44-
#define CSR_INSTERT 0xc02 // Instructions-retired counter for RDINSTRET instruction.
44+
#define CSR_INSTRET 0xc02 // Instructions-retired counter for RDINSTRET instruction.
4545

4646
class VMRegImpl;
4747
typedef VMRegImpl* VMReg;

0 commit comments

Comments
 (0)