We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f0cb19 commit 783906aCopy full SHA for 783906a
riscv/src/register/mcounteren.rs
@@ -120,22 +120,16 @@ mod tests {
120
(3..32).for_each(|i| test_csr_field!(m, hpm, i));
121
122
(0..3).chain(32..64).for_each(|index| {
123
- assert_eq!(
124
- m.try_hpm(index),
125
- Err(Error::IndexOutOfBounds {
+ test_csr_field!(
+ m,
+ hpm,
126
+ index,
127
+ Error::IndexOutOfBounds {
128
index,
129
min: 3,
130
max: 31
- })
- );
131
132
- m.try_set_hpm(index, false),
133
134
- index,
135
- min: 3,
136
- max: 31
137
138
139
+ }
+ )
+ });
140
}
141
0 commit comments