Commit 9e91acb
committed
fix(dcsr): remove redundant wrapper methods and update tests
- Removed `debug_cause`, `privilege_level`, and `set_privilege_level` from `Dcsr`
because the macros `read_write_csr_field!` and `csr_field_enum!` already
generate the necessary accessors.
- Updated tests to use `try_cause()`, `try_prv()`, and `set_prv()` instead
of the removed wrapper methods.1 parent 213181c commit 9e91acb
1 file changed
+4
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 117 | | |
135 | 118 | | |
136 | 119 | | |
| |||
192 | 175 | | |
193 | 176 | | |
194 | 177 | | |
195 | | - | |
| 178 | + | |
196 | 179 | | |
197 | 180 | | |
198 | 181 | | |
| |||
204 | 187 | | |
205 | 188 | | |
206 | 189 | | |
207 | | - | |
208 | | - | |
| 190 | + | |
| 191 | + | |
209 | 192 | | |
210 | 193 | | |
211 | 194 | | |
0 commit comments