← Home

mhpmevent20

Machine Hardware Performance Counter 20 Control

Address: 0x334 (820) · Privilege: M · Length: 64 · Writable · Defined by: Sm · Indirect address: 84 · Indirect slot: 2

Programmable hardware performance counter event selector and overflow/filtering control

Fields

63:5655:4847:4039:3231:2423:1615:87:0
OFMINHSINHUINHVSINHVUINHEVENT
BitsFieldAliasDescriptionTypeReset
[63]OFOverflow 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 mhpmcounter20 overflows.
if (HPM_COUNTER_EN[20]) {
  return CsrFieldType::RWH;
} else {
  return CsrFieldType::RO;
}
if (HPM_COUNTER_EN[20]) {
  return UNDEFINED_LEGAL;
} else {
  return 0;
}
[62]MINHWhen set, mhpmcounter20 does not increment while the hart in operating in M-mode.
if (HPM_COUNTER_EN[20]) {
  return CsrFieldType::RW;
} else {
  return CsrFieldType::RO;
}
if (HPM_COUNTER_EN[20]) {
  return UNDEFINED_LEGAL;
} else {
  return 0;
}
[61]SINHWhen set, mhpmcounter20 does not increment while the hart in operating in (H)S-mode.
if (HPM_COUNTER_EN[20] && implemented?(ExtensionName::S) && (CSR[misa].S == 1'b1)) {
  return CsrFieldType::RW;
} else {
  return CsrFieldType::RO;
}
if (HPM_COUNTER_EN[20] && implemented?(ExtensionName::S)) {
  return UNDEFINED_LEGAL;
} else {
  return 0;
}
[60]UINHWhen set, mhpmcounter20 does not increment while the hart in operating in U-mode.
if (HPM_COUNTER_EN[20] && implemented?(ExtensionName::U) && (CSR[misa].U == 1'b1)) {
  return CsrFieldType::RW;
} else {
  return CsrFieldType::RO;
}
if (HPM_COUNTER_EN[20] && implemented?(ExtensionName::U)) {
  return UNDEFINED_LEGAL;
} else {
  return 0;
}
[59]VSINHWhen set, mhpmcounter20 does not increment while the hart in operating in VS-mode.
if ((HPM_COUNTER_EN[20]) && implemented?(ExtensionName::H) && (CSR[misa].H == 1'b1)) {
  return CsrFieldType::RW;
} else {
  return CsrFieldType::RO;
}
if (HPM_COUNTER_EN[20] && implemented?(ExtensionName::H)) {
  return UNDEFINED_LEGAL;
} else {
  return 0;
}
[58]VUINHWhen set, mhpmcounter20 does not increment while the hart in operating in VU-mode.
if (HPM_COUNTER_EN[20] && implemented?(ExtensionName::H) && (CSR[misa].H == 1'b1)) {
  return CsrFieldType::RW;
} else {
  return CsrFieldType::RO;
}
if ((HPM_COUNTER_EN[20]) && implemented?(ExtensionName::H)) {
  return UNDEFINED_LEGAL;
} else {
  return 0;
}
[57:0]EVENTEvent selector for performance counter `mhpmcounter20`.
if (HPM_COUNTER_EN[20]) {
  return CsrFieldType::RW;
} else {
  return CsrFieldType::RO;
}
if (HPM_COUNTER_EN[20]) {
  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.