Webcentive RISC-V Reference

scountinhibit

Supervisor counter-inhibit register

Address
0x120
Group
Supervisor-level CSRs
Privilege
SRW (privileged spec CSR listing, Supervisor Counter Setup)
Access
read/write; lowest privilege S (supervisor)
Address range
Standard read/write
Name in riscv-unified-db
Supervisor Counter Inhibit

Privileged spec: Supervisor counter-inhibit register

Description

scountinhibit is a masked alias of mcountinhibit. For counters delegated to S-mode, the associated mcountinhibit bits can be accessed via scountinhibit. For counters not delegated to S-mode, the associated bits in scountinhibit are read-only zero.

A counter i is delegated to S-mode when mcounteren[i]=1 and menvcfg.CDE=1.

When menvcfg.CDE=0, attempts to access scountinhibit raise an Illegal Instruction exception. When Supervisor Counter Delegation is enabled, attempts to access scountinhibit from VS-mode or VU-mode raise a Virtual Instruction exception.

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
CY0

Alias of mcountinhibit.CY when mcycle is delegated to S-mode (mcounteren.CY=1); otherwise read-only zero.

IR2

Alias of mcountinhibit.IR when minstret is delegated to S-mode (mcounteren.IR=1); otherwise read-only zero.

HPM33

[when="COUNTINHIBIT_EN[3] == true"] Alias of mcountinhibit.HPM3 when mhpmcounter3 is delegated to S-mode (mcounteren.HPM3=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[3] == false"] Since mcountinhibit.HPM3 is not writable, this field is read-only zero.

HPM44

[when="COUNTINHIBIT_EN[4] == true"] Alias of mcountinhibit.HPM4 when mhpmcounter4 is delegated to S-mode (mcounteren.HPM4=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[4] == false"] Since mcountinhibit.HPM4 is not writable, this field is read-only zero.

HPM55

[when="COUNTINHIBIT_EN[5] == true"] Alias of mcountinhibit.HPM5 when mhpmcounter5 is delegated to S-mode (mcounteren.HPM5=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[5] == false"] Since mcountinhibit.HPM5 is not writable, this field is read-only zero.

HPM66

[when="COUNTINHIBIT_EN[6] == true"] Alias of mcountinhibit.HPM6 when mhpmcounter6 is delegated to S-mode (mcounteren.HPM6=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[6] == false"] Since mcountinhibit.HPM6 is not writable, this field is read-only zero.

HPM77

[when="COUNTINHIBIT_EN[7] == true"] Alias of mcountinhibit.HPM7 when mhpmcounter7 is delegated to S-mode (mcounteren.HPM7=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[7] == false"] Since mcountinhibit.HPM7 is not writable, this field is read-only zero.

HPM88

[when="COUNTINHIBIT_EN[8] == true"] Alias of mcountinhibit.HPM8 when mhpmcounter8 is delegated to S-mode (mcounteren.HPM8=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[8] == false"] Since mcountinhibit.HPM8 is not writable, this field is read-only zero.

HPM99

[when="COUNTINHIBIT_EN[9] == true"] Alias of mcountinhibit.HPM9 when mhpmcounter9 is delegated to S-mode (mcounteren.HPM9=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[9] == false"] Since mcountinhibit.HPM9 is not writable, this field is read-only zero.

HPM1010

[when="COUNTINHIBIT_EN[10] == true"] Alias of mcountinhibit.HPM10 when mhpmcounter10 is delegated to S-mode (mcounteren.HPM10=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[10] == false"] Since mcountinhibit.HPM10 is not writable, this field is read-only zero.

HPM1111

[when="COUNTINHIBIT_EN[11] == true"] Alias of mcountinhibit.HPM11 when mhpmcounter11 is delegated to S-mode (mcounteren.HPM11=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[11] == false"] Since mcountinhibit.HPM11 is not writable, this field is read-only zero.

HPM1212

[when="COUNTINHIBIT_EN[12] == true"] Alias of mcountinhibit.HPM12 when mhpmcounter12 is delegated to S-mode (mcounteren.HPM12=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[12] == false"] Since mcountinhibit.HPM12 is not writable, this field is read-only zero.

HPM1313

[when="COUNTINHIBIT_EN[13] == true"] Alias of mcountinhibit.HPM13 when mhpmcounter13 is delegated to S-mode (mcounteren.HPM13=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[13] == false"] Since mcountinhibit.HPM13 is not writable, this field is read-only zero.

HPM1414

[when="COUNTINHIBIT_EN[14] == true"] Alias of mcountinhibit.HPM14 when mhpmcounter14 is delegated to S-mode (mcounteren.HPM14=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[14] == false"] Since mcountinhibit.HPM14 is not writable, this field is read-only zero.

HPM1515

[when="COUNTINHIBIT_EN[15] == true"] Alias of mcountinhibit.HPM15 when mhpmcounter15 is delegated to S-mode (mcounteren.HPM15=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[15] == false"] Since mcountinhibit.HPM15 is not writable, this field is read-only zero.

HPM1616

[when="COUNTINHIBIT_EN[16] == true"] Alias of mcountinhibit.HPM16 when mhpmcounter16 is delegated to S-mode (mcounteren.HPM16=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[16] == false"] Since mcountinhibit.HPM16 is not writable, this field is read-only zero.

HPM1717

[when="COUNTINHIBIT_EN[17] == true"] Alias of mcountinhibit.HPM17 when mhpmcounter17 is delegated to S-mode (mcounteren.HPM17=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[17] == false"] Since mcountinhibit.HPM17 is not writable, this field is read-only zero.

HPM1818

[when="COUNTINHIBIT_EN[18] == true"] Alias of mcountinhibit.HPM18 when mhpmcounter18 is delegated to S-mode (mcounteren.HPM18=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[18] == false"] Since mcountinhibit.HPM18 is not writable, this field is read-only zero.

HPM1919

[when="COUNTINHIBIT_EN[19] == true"] Alias of mcountinhibit.HPM19 when mhpmcounter19 is delegated to S-mode (mcounteren.HPM19=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[19] == false"] Since mcountinhibit.HPM19 is not writable, this field is read-only zero.

HPM2020

[when="COUNTINHIBIT_EN[20] == true"] Alias of mcountinhibit.HPM20 when mhpmcounter20 is delegated to S-mode (mcounteren.HPM20=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[20] == false"] Since mcountinhibit.HPM20 is not writable, this field is read-only zero.

HPM2121

[when="COUNTINHIBIT_EN[21] == true"] Alias of mcountinhibit.HPM21 when mhpmcounter21 is delegated to S-mode (mcounteren.HPM21=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[21] == false"] Since mcountinhibit.HPM21 is not writable, this field is read-only zero.

HPM2222

[when="COUNTINHIBIT_EN[22] == true"] Alias of mcountinhibit.HPM22 when mhpmcounter22 is delegated to S-mode (mcounteren.HPM22=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[22] == false"] Since mcountinhibit.HPM22 is not writable, this field is read-only zero.

HPM2323

[when="COUNTINHIBIT_EN[23] == true"] Alias of mcountinhibit.HPM23 when mhpmcounter23 is delegated to S-mode (mcounteren.HPM23=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[23] == false"] Since mcountinhibit.HPM23 is not writable, this field is read-only zero.

HPM2424

[when="COUNTINHIBIT_EN[24] == true"] Alias of mcountinhibit.HPM24 when mhpmcounter24 is delegated to S-mode (mcounteren.HPM24=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[24] == false"] Since mcountinhibit.HPM24 is not writable, this field is read-only zero.

HPM2525

[when="COUNTINHIBIT_EN[25] == true"] Alias of mcountinhibit.HPM25 when mhpmcounter25 is delegated to S-mode (mcounteren.HPM25=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[25] == false"] Since mcountinhibit.HPM25 is not writable, this field is read-only zero.

HPM2626

[when="COUNTINHIBIT_EN[26] == true"] Alias of mcountinhibit.HPM26 when mhpmcounter26 is delegated to S-mode (mcounteren.HPM26=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[26] == false"] Since mcountinhibit.HPM26 is not writable, this field is read-only zero.

HPM2727

[when="COUNTINHIBIT_EN[27] == true"] Alias of mcountinhibit.HPM27 when mhpmcounter27 is delegated to S-mode (mcounteren.HPM27=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[27] == false"] Since mcountinhibit.HPM27 is not writable, this field is read-only zero.

HPM2828

[when="COUNTINHIBIT_EN[28] == true"] Alias of mcountinhibit.HPM28 when mhpmcounter28 is delegated to S-mode (mcounteren.HPM28=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[28] == false"] Since mcountinhibit.HPM28 is not writable, this field is read-only zero.

HPM2929

[when="COUNTINHIBIT_EN[29] == true"] Alias of mcountinhibit.HPM29 when mhpmcounter29 is delegated to S-mode (mcounteren.HPM29=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[29] == false"] Since mcountinhibit.HPM29 is not writable, this field is read-only zero.

HPM3030

[when="COUNTINHIBIT_EN[30] == true"] Alias of mcountinhibit.HPM30 when mhpmcounter30 is delegated to S-mode (mcounteren.HPM30=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[30] == false"] Since mcountinhibit.HPM30 is not writable, this field is read-only zero.

HPM3131

[when="COUNTINHIBIT_EN[31] == true"] Alias of mcountinhibit.HPM31 when mhpmcounter31 is delegated to S-mode (mcounteren.HPM31=1); otherwise read-only zero.

[when="COUNTINHIBIT_EN[31] == false"] Since mcountinhibit.HPM31 is not writable, this field is read-only zero.

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

Specification and related pages