Webcentive RISC-V Reference

instreth

Upper 32 bits of instret, RV32 only

Address
0xC82
Group
Unprivileged and user-level CSRs
Privilege
URO (privileged spec CSR listing, Unprivileged Counter/Timers)
Access
read-only; lowest privilege U (user/unprivileged)
Address range
Standard read-only
XLEN
RV32 only
Name in riscv-unified-db
Instructions retired counter, high bits

Privileged spec: Upper 32 bits of instret, RV32 only

Description

Alias for high bits of M-mode CSR minstret[63:32].

Privilege mode access is controlled with mcounteren.IR, scounteren.IR, and hcounteren.IR as follows:

mcounteren.IRscounteren.IRhcounteren.IR
instret behavior
S-modeU-modeVS-modeVU-mode
0--IllegalInstructionIllegalInstructionIllegalInstructionIllegalInstruction
100read-onlyIllegalInstructionVirtualInstructionVirtualInstruction
110read-onlyread-onlyVirtualInstructionVirtualInstruction
101read-onlyIllegalInstructionread-onlyVirtualInstruction
111read-onlyread-onlyread-onlyread-only

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
COUNT31-0RO-H

Alias of minstret.COUNT[63:32].

Fields from riscv-unified-db; field types computed by IDL functions there are not shown.

Specification and related pages