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 fd6c947 commit e2cfa4fCopy full SHA for e2cfa4f
riscv/src/register/mcounteren.rs
@@ -117,18 +117,7 @@ mod tests {
117
test_csr_field!(m, tm);
118
test_csr_field!(m, ir);
119
120
- (3..32).for_each(|i| {
121
- assert!(!m.hpm(i));
122
- assert_eq!(m.try_hpm(i), Ok(false));
123
-
124
- m.set_hpm(i, true);
125
- assert!(m.hpm(i));
126
127
- assert_eq!(m.try_set_hpm(i, false), Ok(()));
128
129
130
131
- });
+ (3..32).for_each(|i| test_csr_field!(m, hpm, i));
132
133
(0..3).chain(32..64).for_each(|index| {
134
assert_eq!(
0 commit comments