Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions arch/csr/I/mcounteren.layout
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ fields:
When `hcounteren.CY` && `scounteren.CY` are both set, `cycle` is futher accessible to VU-mode.
<%%- end -%>
type(): |
if (MCOUNTENABLE_EN[2]) {
if (MCOUNTENABLE_EN[0]) {
return CsrFieldType::RW;
} else {
return CsrFieldType::RO;
}
reset_value(): |
if (MCOUNTENABLE_EN[2]) {
if (MCOUNTENABLE_EN[0]) {
return UNDEFINED_LEGAL;
} else {
return 0;
Expand Down
4 changes: 2 additions & 2 deletions arch/csr/I/mcounteren.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ fields:
When `hcounteren.CY` && `scounteren.CY` are both set, `cycle` is futher accessible to VU-mode.
<%- end -%>
type(): |
if (MCOUNTENABLE_EN[2]) {
if (MCOUNTENABLE_EN[0]) {
return CsrFieldType::RW;
} else {
return CsrFieldType::RO;
}
reset_value(): |
if (MCOUNTENABLE_EN[2]) {
if (MCOUNTENABLE_EN[0]) {
return UNDEFINED_LEGAL;
} else {
return 0;
Expand Down
Loading