Webcentive RISC-V Reference

mhpmevent30

Machine performance-monitoring event selector

Address
0x33E
Group
Machine-level CSRs
Privilege
MRW (privileged spec CSR listing, Machine Counter Setup)
Access
read/write; lowest privilege M (machine)
Address range
Standard read/write
Name in riscv-unified-db
Machine Hardware Performance Counter 30 Control

Privileged spec: Machine performance-monitoring event selector

Description

Programmable hardware performance counter event selector (when Sscofpmf is implemented: and overflow/filtering control)

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
OF63

Overflow status and interrupt disable.

The OF bit is set when the corresponding hpmcounter overflows, and remains set until written by software. Since hpmcounter values are unsigned values, overflow is defined as unsigned overflow of the implemented counter bits.

The OF bit is sticky; it stays set until explicitly cleared by a CSR write.

A Local Counter Overflow Interrupt (LCOFI) is generated when OF is clear and mhpmcounter30 overflows.

MINH62

When set, mhpmcounter30 does not increment while the hart in operating in M-mode.

SINH61

When set, mhpmcounter30 does not increment while the hart in operating in (H)S-mode.

UINH60

When set, mhpmcounter30 does not increment while the hart in operating in U-mode.

VSINH59

When set, mhpmcounter30 does not increment while the hart in operating in VS-mode.

VUINH58

When set, mhpmcounter30 does not increment while the hart in operating in VU-mode.

EVENT57-0

Event selector for performance counter mhpmcounter30.

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

Specification and related pages