Skip to content

Commit e54f302

Browse files
author
Derek Hower
committed
]Fix bug in mcounteren.CY
1 parent b5050b0 commit e54f302

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/csr/I/mcounteren.layout

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ fields:
104104
When `hcounteren.CY` && `scounteren.CY` are both set, `cycle` is futher accessible to VU-mode.
105105
<%%- end -%>
106106
type(): |
107-
if (MCOUNTENABLE_EN[2]) {
107+
if (MCOUNTENABLE_EN[0]) {
108108
return CsrFieldType::RW;
109109
} else {
110110
return CsrFieldType::RO;
111111
}
112112
reset_value(): |
113-
if (MCOUNTENABLE_EN[2]) {
113+
if (MCOUNTENABLE_EN[0]) {
114114
return UNDEFINED_LEGAL;
115115
} else {
116116
return 0;

arch/csr/I/mcounteren.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ fields:
107107
When `hcounteren.CY` && `scounteren.CY` are both set, `cycle` is futher accessible to VU-mode.
108108
<%- end -%>
109109
type(): |
110-
if (MCOUNTENABLE_EN[2]) {
110+
if (MCOUNTENABLE_EN[0]) {
111111
return CsrFieldType::RW;
112112
} else {
113113
return CsrFieldType::RO;
114114
}
115115
reset_value(): |
116-
if (MCOUNTENABLE_EN[2]) {
116+
if (MCOUNTENABLE_EN[0]) {
117117
return UNDEFINED_LEGAL;
118118
} else {
119119
return 0;

0 commit comments

Comments
 (0)