mcountinhibit
Machine Counter Inhibit
Bits to inhibit (stops counting) performance counters.
The counter-inhibit register mcountinhibit is a WARL register that controls which of the hardware performance-monitoring counters increment. The settings in this register only control whether the counters increment; their accessibility is not affected by the setting of this register.
When the CY, IR, or HPMn bit in the mcountinhibit register is clear,
the mcycle, minstret, or mhpmcountern
register increments as usual.
When the CY, IR, or HPM_n_ bit is set, the corresponding counter does
not increment.
The mcycle CSR may be shared between harts on the same core, in which case the mcountinhibit.CY field is also shared between those harts, and so writes to mcountinhibit.CY will be visible to those harts.
If the mcountinhibit register is not implemented, the implementation behaves as though the register were set to zero.
When the mcycle and minstret counters are not needed, it is desirable to conditionally inhibit them to reduce energy consumption. Providing a single CSR to inhibit all counters also allows the counters to be atomically sampled. Because the |
Attributes
Defining Extension |
|
---|---|
CSR Address |
0x320 |
Length |
32-bit |
Privilege Mode |
M |
Field Summary
Name | Location | Type | Reset Value |
---|---|---|---|
0 |
[when,"COUNTINHIBIT_EN[0]"] RW [when,"!(COUNTINHIBIT_EN[0])"] RO |
[when,"COUNTINHIBIT_EN[0]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[0])"] 0 |
|
2 |
[when,"COUNTINHIBIT_EN[2]"] RW [when,"!(COUNTINHIBIT_EN[2])"] RO |
[when,"COUNTINHIBIT_EN[2]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[2])"] 0 |
|
3 |
[when,"COUNTINHIBIT_EN[3]"] RW [when,"!(COUNTINHIBIT_EN[3])"] RO |
[when,"COUNTINHIBIT_EN[3]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[3])"] 0 |
|
4 |
[when,"COUNTINHIBIT_EN[4]"] RW [when,"!(COUNTINHIBIT_EN[4])"] RO |
[when,"COUNTINHIBIT_EN[4]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[4])"] 0 |
|
5 |
[when,"COUNTINHIBIT_EN[5]"] RW [when,"!(COUNTINHIBIT_EN[5])"] RO |
[when,"COUNTINHIBIT_EN[5]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[5])"] 0 |
|
6 |
[when,"COUNTINHIBIT_EN[6]"] RW [when,"!(COUNTINHIBIT_EN[6])"] RO |
[when,"COUNTINHIBIT_EN[6]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[6])"] 0 |
|
7 |
[when,"COUNTINHIBIT_EN[7]"] RW [when,"!(COUNTINHIBIT_EN[7])"] RO |
[when,"COUNTINHIBIT_EN[7]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[7])"] 0 |
|
8 |
[when,"COUNTINHIBIT_EN[8]"] RW [when,"!(COUNTINHIBIT_EN[8])"] RO |
[when,"COUNTINHIBIT_EN[8]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[8])"] 0 |
|
9 |
[when,"COUNTINHIBIT_EN[9]"] RW [when,"!(COUNTINHIBIT_EN[9])"] RO |
[when,"COUNTINHIBIT_EN[9]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[9])"] 0 |
|
10 |
[when,"COUNTINHIBIT_EN[10]"] RW [when,"!(COUNTINHIBIT_EN[10])"] RO |
[when,"COUNTINHIBIT_EN[10]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[10])"] 0 |
|
11 |
[when,"COUNTINHIBIT_EN[11]"] RW [when,"!(COUNTINHIBIT_EN[11])"] RO |
[when,"COUNTINHIBIT_EN[11]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[11])"] 0 |
|
12 |
[when,"COUNTINHIBIT_EN[12]"] RW [when,"!(COUNTINHIBIT_EN[12])"] RO |
[when,"COUNTINHIBIT_EN[12]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[12])"] 0 |
|
13 |
[when,"COUNTINHIBIT_EN[13]"] RW [when,"!(COUNTINHIBIT_EN[13])"] RO |
[when,"COUNTINHIBIT_EN[13]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[13])"] 0 |
|
14 |
[when,"COUNTINHIBIT_EN[14]"] RW [when,"!(COUNTINHIBIT_EN[14])"] RO |
[when,"COUNTINHIBIT_EN[14]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[14])"] 0 |
|
15 |
[when,"COUNTINHIBIT_EN[15]"] RW [when,"!(COUNTINHIBIT_EN[15])"] RO |
[when,"COUNTINHIBIT_EN[15]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[15])"] 0 |
|
16 |
[when,"COUNTINHIBIT_EN[16]"] RW [when,"!(COUNTINHIBIT_EN[16])"] RO |
[when,"COUNTINHIBIT_EN[16]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[16])"] 0 |
|
17 |
[when,"COUNTINHIBIT_EN[17]"] RW [when,"!(COUNTINHIBIT_EN[17])"] RO |
[when,"COUNTINHIBIT_EN[17]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[17])"] 0 |
|
18 |
[when,"COUNTINHIBIT_EN[18]"] RW [when,"!(COUNTINHIBIT_EN[18])"] RO |
[when,"COUNTINHIBIT_EN[18]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[18])"] 0 |
|
19 |
[when,"COUNTINHIBIT_EN[19]"] RW [when,"!(COUNTINHIBIT_EN[19])"] RO |
[when,"COUNTINHIBIT_EN[19]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[19])"] 0 |
|
20 |
[when,"COUNTINHIBIT_EN[20]"] RW [when,"!(COUNTINHIBIT_EN[20])"] RO |
[when,"COUNTINHIBIT_EN[20]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[20])"] 0 |
|
21 |
[when,"COUNTINHIBIT_EN[21]"] RW [when,"!(COUNTINHIBIT_EN[21])"] RO |
[when,"COUNTINHIBIT_EN[21]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[21])"] 0 |
|
22 |
[when,"COUNTINHIBIT_EN[22]"] RW [when,"!(COUNTINHIBIT_EN[22])"] RO |
[when,"COUNTINHIBIT_EN[22]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[22])"] 0 |
|
23 |
[when,"COUNTINHIBIT_EN[23]"] RW [when,"!(COUNTINHIBIT_EN[23])"] RO |
[when,"COUNTINHIBIT_EN[23]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[23])"] 0 |
|
24 |
[when,"COUNTINHIBIT_EN[24]"] RW [when,"!(COUNTINHIBIT_EN[24])"] RO |
[when,"COUNTINHIBIT_EN[24]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[24])"] 0 |
|
25 |
[when,"COUNTINHIBIT_EN[25]"] RW [when,"!(COUNTINHIBIT_EN[25])"] RO |
[when,"COUNTINHIBIT_EN[25]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[25])"] 0 |
|
26 |
[when,"COUNTINHIBIT_EN[26]"] RW [when,"!(COUNTINHIBIT_EN[26])"] RO |
[when,"COUNTINHIBIT_EN[26]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[26])"] 0 |
|
27 |
[when,"COUNTINHIBIT_EN[27]"] RW [when,"!(COUNTINHIBIT_EN[27])"] RO |
[when,"COUNTINHIBIT_EN[27]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[27])"] 0 |
|
28 |
[when,"COUNTINHIBIT_EN[28]"] RW [when,"!(COUNTINHIBIT_EN[28])"] RO |
[when,"COUNTINHIBIT_EN[28]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[28])"] 0 |
|
29 |
[when,"COUNTINHIBIT_EN[29]"] RW [when,"!(COUNTINHIBIT_EN[29])"] RO |
[when,"COUNTINHIBIT_EN[29]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[29])"] 0 |
|
30 |
[when,"COUNTINHIBIT_EN[30]"] RW [when,"!(COUNTINHIBIT_EN[30])"] RO |
[when,"COUNTINHIBIT_EN[30]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[30])"] 0 |
|
31 |
[when,"COUNTINHIBIT_EN[31]"] RW [when,"!(COUNTINHIBIT_EN[31])"] RO |
[when,"COUNTINHIBIT_EN[31]"] UNDEFINED_LEGAL [when,"!(COUNTINHIBIT_EN[31])"] 0 |