Webcentive RISC-V Reference

mhpmcounter10h

Upper 32 bits of mhpmcounter10, RV32 only

Address
0xB8A
Group
Machine-level CSRs
Privilege
MRW (privileged spec CSR listing, Machine Counter/Timers)
Access
read/write; lowest privilege M (machine)
Address range
Standard read/write
XLEN
RV32 only
Name in riscv-unified-db
Machine Hardware Performance Counter 10, Upper half

Privileged spec: Upper 32 bits of mhpmcounter10, RV32 only

Description

Upper half of mhpmcounter10.

The hpmcounter10h CSR is a read-only shadow of this CSR. Access to hpmcounter10h is controlled with mcounteren.HPM10

When S is implemented:

, scounteren.HPM10

When H is implemented:

, and hcounteren.HPM10

as follows:

When H is implemented:

mcounteren.HPM10scounteren.HPM10hcounteren.HPM10
hpmcounter10h behavior
S-modeU-modeVS-modeVU-mode
0--IllegalInstructionIllegalInstructionIllegalInstructionIllegalInstruction
100read-onlyIllegalInstructionVirtualInstructionVirtualInstruction
110read-onlyread-onlyVirtualInstructionVirtualInstruction
101read-onlyIllegalInstructionread-onlyVirtualInstruction
111read-onlyread-onlyread-onlyread-only

Otherwise, when S is implemented:

mcounteren.HPM10scounteren.HPM10
hpmcounter10h behavior
S-modeU-mode
0-IllegalInstructionIllegalInstruction
10read-onlyIllegalInstruction
11read-onlyread-only

Otherwise:

mcounteren.HPM10
hpmcounter10h behavior
U-mode
0IllegalInstruction
1read-only

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
COUNT31-0

Upper bits of counter.

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

Specification and related pages