mhpmevent21
Machine Hardware Performance Counter 21 Control
Programmable hardware performance counter event selector <% if ext?(:Sscofpmf) %> and overflow/filtering control<% end %>
Attributes
Defining Extension |
|
---|---|
CSR Address |
0x335 |
Length |
64-bit |
Privilege Mode |
M |
Field Summary
Name | Location | Type | Reset Value |
---|---|---|---|
63 |
UNDEFINED_LEGAL |
||
62 |
UNDEFINED_LEGAL |
||
61 |
UNDEFINED_LEGAL |
||
60 |
UNDEFINED_LEGAL |
||
59 |
UNDEFINED_LEGAL |
||
58 |
UNDEFINED_LEGAL |
||
57:0 |
UNDEFINED_LEGAL |
Software write
This CSR may store a value that is different from what software attempts to write.
When a software write occurs (e.g., through csrrw), the following determines the written value:
OF = csr_value.OF MINH = csr_value.MINH SINH = csr_value.SINH UINH = csr_value.UINH VSINH = csr_value.VSINH VUINH = csr_value.VUINH EVENT = if (ary_includes?<$array_size(HPM_EVENTS), 58>(HPM_EVENTS, csr_value.EVENT)) { return csr_value.EVENT; } else { return UNDEFINED_LEGAL_DETERMINISTIC; }