Webcentive RISC-V Reference

scountovf

Supervisor count overflow

Address
0xDA0
Group
Supervisor-level CSRs
Privilege
SRO (privileged spec CSR listing, Supervisor Trap Handling)
Access
read-only; lowest privilege S (supervisor)
Address range
Standard read-only
Name in riscv-unified-db
Supervisor Count Overflow

Privileged spec: Supervisor count overflow

Description

A 32-bit read-only register that contains shadow copies of the OF bits in the 29 mhpmevent CSRs (mhpmevent3 - mhpmevent31) — where scountovf bit X corresponds to mhpmeventX.

This register enables supervisor-level overflow interrupt handler software to quickly and easily determine which counter(s) have overflowed without needing to make an execution environment call up to M-mode.

Read access to bit X is subject to the same mcounteren (or mcounteren and hcounteren) CSRs that mediate access to the hpmcounter CSRs by S-mode (or VS-mode).

In M-mode, scountovf bit X is always readable. In S/HS-mode, scountovf bit X is readable when mcounteren bit X is set, and otherwise reads as zero. Similarly, in VS-mode, it is readable when both mcounteren and hcounteren bit X are set.

If the Smcdeleg extension is implemented and menvcfg.CDE is set, attempts to read scountovf from VS-mode or VU-mode raise a Virtual Instruction exception.

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
OF33

[when="HPM_COUNTER_EN[3] == true"] Shadow copy of mhpmevent3 overflow (OF) bit.

[when="HPM_COUNTER_EN[3] == false"] This field is read-only zero because the counter is not enabled.

OF44

[when="HPM_COUNTER_EN[4] == true"] Shadow copy of mhpmevent4 overflow (OF) bit.

[when="HPM_COUNTER_EN[4] == false"] This field is read-only zero because the counter is not enabled.

OF55

[when="HPM_COUNTER_EN[5] == true"] Shadow copy of mhpmevent5 overflow (OF) bit.

[when="HPM_COUNTER_EN[5] == false"] This field is read-only zero because the counter is not enabled.

OF66

[when="HPM_COUNTER_EN[6] == true"] Shadow copy of mhpmevent6 overflow (OF) bit.

[when="HPM_COUNTER_EN[6] == false"] This field is read-only zero because the counter is not enabled.

OF77

[when="HPM_COUNTER_EN[7] == true"] Shadow copy of mhpmevent7 overflow (OF) bit.

[when="HPM_COUNTER_EN[7] == false"] This field is read-only zero because the counter is not enabled.

OF88

[when="HPM_COUNTER_EN[8] == true"] Shadow copy of mhpmevent8 overflow (OF) bit.

[when="HPM_COUNTER_EN[8] == false"] This field is read-only zero because the counter is not enabled.

OF99

[when="HPM_COUNTER_EN[9] == true"] Shadow copy of mhpmevent9 overflow (OF) bit.

[when="HPM_COUNTER_EN[9] == false"] This field is read-only zero because the counter is not enabled.

OF1010

[when="HPM_COUNTER_EN[10] == true"] Shadow copy of mhpmevent10 overflow (OF) bit.

[when="HPM_COUNTER_EN[10] == false"] This field is read-only zero because the counter is not enabled.

OF1111

[when="HPM_COUNTER_EN[11] == true"] Shadow copy of mhpmevent11 overflow (OF) bit.

[when="HPM_COUNTER_EN[11] == false"] This field is read-only zero because the counter is not enabled.

OF1212

[when="HPM_COUNTER_EN[12] == true"] Shadow copy of mhpmevent12 overflow (OF) bit.

[when="HPM_COUNTER_EN[12] == false"] This field is read-only zero because the counter is not enabled.

OF1313

[when="HPM_COUNTER_EN[13] == true"] Shadow copy of mhpmevent13 overflow (OF) bit.

[when="HPM_COUNTER_EN[13] == false"] This field is read-only zero because the counter is not enabled.

OF1414

[when="HPM_COUNTER_EN[14] == true"] Shadow copy of mhpmevent14 overflow (OF) bit.

[when="HPM_COUNTER_EN[14] == false"] This field is read-only zero because the counter is not enabled.

OF1515

[when="HPM_COUNTER_EN[15] == true"] Shadow copy of mhpmevent15 overflow (OF) bit.

[when="HPM_COUNTER_EN[15] == false"] This field is read-only zero because the counter is not enabled.

OF1616

[when="HPM_COUNTER_EN[16] == true"] Shadow copy of mhpmevent16 overflow (OF) bit.

[when="HPM_COUNTER_EN[16] == false"] This field is read-only zero because the counter is not enabled.

OF1717

[when="HPM_COUNTER_EN[17] == true"] Shadow copy of mhpmevent17 overflow (OF) bit.

[when="HPM_COUNTER_EN[17] == false"] This field is read-only zero because the counter is not enabled.

OF1818

[when="HPM_COUNTER_EN[18] == true"] Shadow copy of mhpmevent18 overflow (OF) bit.

[when="HPM_COUNTER_EN[18] == false"] This field is read-only zero because the counter is not enabled.

OF1919

[when="HPM_COUNTER_EN[19] == true"] Shadow copy of mhpmevent19 overflow (OF) bit.

[when="HPM_COUNTER_EN[19] == false"] This field is read-only zero because the counter is not enabled.

OF2020

[when="HPM_COUNTER_EN[20] == true"] Shadow copy of mhpmevent20 overflow (OF) bit.

[when="HPM_COUNTER_EN[20] == false"] This field is read-only zero because the counter is not enabled.

OF2121

[when="HPM_COUNTER_EN[21] == true"] Shadow copy of mhpmevent21 overflow (OF) bit.

[when="HPM_COUNTER_EN[21] == false"] This field is read-only zero because the counter is not enabled.

OF2222

[when="HPM_COUNTER_EN[22] == true"] Shadow copy of mhpmevent22 overflow (OF) bit.

[when="HPM_COUNTER_EN[22] == false"] This field is read-only zero because the counter is not enabled.

OF2323

[when="HPM_COUNTER_EN[23] == true"] Shadow copy of mhpmevent23 overflow (OF) bit.

[when="HPM_COUNTER_EN[23] == false"] This field is read-only zero because the counter is not enabled.

OF2424

[when="HPM_COUNTER_EN[24] == true"] Shadow copy of mhpmevent24 overflow (OF) bit.

[when="HPM_COUNTER_EN[24] == false"] This field is read-only zero because the counter is not enabled.

OF2525

[when="HPM_COUNTER_EN[25] == true"] Shadow copy of mhpmevent25 overflow (OF) bit.

[when="HPM_COUNTER_EN[25] == false"] This field is read-only zero because the counter is not enabled.

OF2626

[when="HPM_COUNTER_EN[26] == true"] Shadow copy of mhpmevent26 overflow (OF) bit.

[when="HPM_COUNTER_EN[26] == false"] This field is read-only zero because the counter is not enabled.

OF2727

[when="HPM_COUNTER_EN[27] == true"] Shadow copy of mhpmevent27 overflow (OF) bit.

[when="HPM_COUNTER_EN[27] == false"] This field is read-only zero because the counter is not enabled.

OF2828

[when="HPM_COUNTER_EN[28] == true"] Shadow copy of mhpmevent28 overflow (OF) bit.

[when="HPM_COUNTER_EN[28] == false"] This field is read-only zero because the counter is not enabled.

OF2929

[when="HPM_COUNTER_EN[29] == true"] Shadow copy of mhpmevent29 overflow (OF) bit.

[when="HPM_COUNTER_EN[29] == false"] This field is read-only zero because the counter is not enabled.

OF3030

[when="HPM_COUNTER_EN[30] == true"] Shadow copy of mhpmevent30 overflow (OF) bit.

[when="HPM_COUNTER_EN[30] == false"] This field is read-only zero because the counter is not enabled.

OF3131

[when="HPM_COUNTER_EN[31] == true"] Shadow copy of mhpmevent31 overflow (OF) bit.

[when="HPM_COUNTER_EN[31] == false"] This field is read-only zero because the counter is not enabled.

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

Specification and related pages