Machine Hardware Performance Counter 5 Control
Programmable hardware performance counter event selector and overflow/filtering control
| 63:56 | 55:48 | 47:40 | 39:32 | 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| OF | MINH | SINH | UINH | VSINH | VUINH | EVENT | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bits | Field | Alias | Description | Type | Reset |
|---|---|---|---|---|---|
| [63] | OF | 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 mhpmcounter5 overflows. | if (HPM_COUNTER_EN[5]) {
return CsrFieldType::RWH;
} else {
return CsrFieldType::RO;
} | if (HPM_COUNTER_EN[5]) {
return UNDEFINED_LEGAL;
} else {
return 0;
} | |
| [62] | MINH | When set, mhpmcounter5 does not increment while the hart in operating in M-mode. | if (HPM_COUNTER_EN[5]) {
return CsrFieldType::RW;
} else {
return CsrFieldType::RO;
} | if (HPM_COUNTER_EN[5]) {
return UNDEFINED_LEGAL;
} else {
return 0;
} | |
| [61] | SINH | When set, mhpmcounter5 does not increment while the hart in operating in (H)S-mode. | if (HPM_COUNTER_EN[5] && implemented?(ExtensionName::S) && (CSR[misa].S == 1'b1)) {
return CsrFieldType::RW;
} else {
return CsrFieldType::RO;
} | if (HPM_COUNTER_EN[5] && implemented?(ExtensionName::S)) {
return UNDEFINED_LEGAL;
} else {
return 0;
} | |
| [60] | UINH | When set, mhpmcounter5 does not increment while the hart in operating in U-mode. | if (HPM_COUNTER_EN[5] && implemented?(ExtensionName::U) && (CSR[misa].U == 1'b1)) {
return CsrFieldType::RW;
} else {
return CsrFieldType::RO;
} | if (HPM_COUNTER_EN[5] && implemented?(ExtensionName::U)) {
return UNDEFINED_LEGAL;
} else {
return 0;
} | |
| [59] | VSINH | When set, mhpmcounter5 does not increment while the hart in operating in VS-mode. | if ((HPM_COUNTER_EN[5]) && implemented?(ExtensionName::H) && (CSR[misa].H == 1'b1)) {
return CsrFieldType::RW;
} else {
return CsrFieldType::RO;
} | if (HPM_COUNTER_EN[5] && implemented?(ExtensionName::H)) {
return UNDEFINED_LEGAL;
} else {
return 0;
} | |
| [58] | VUINH | When set, mhpmcounter5 does not increment while the hart in operating in VU-mode. | if (HPM_COUNTER_EN[5] && implemented?(ExtensionName::H) && (CSR[misa].H == 1'b1)) {
return CsrFieldType::RW;
} else {
return CsrFieldType::RO;
} | if ((HPM_COUNTER_EN[5]) && implemented?(ExtensionName::H)) {
return UNDEFINED_LEGAL;
} else {
return 0;
} | |
| [57:0] | EVENT | Event selector for performance counter `mhpmcounter5`. | if (HPM_COUNTER_EN[5]) {
return CsrFieldType::RW;
} else {
return CsrFieldType::RO;
} | if (HPM_COUNTER_EN[5]) {
return UNDEFINED_LEGAL;
} else {
return 0;
} |
Version af3eaf9+cheriot.f635218
Data from the RISC-V Unified Database, copyright RISC-V International and contributors.
CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.
This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.