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 1e6e888 commit faec0e8Copy full SHA for faec0e8
hw/opentitan/otbn/otbn/src/csrs.rs
@@ -126,22 +126,6 @@ impl WSRAddr {
126
}
127
128
129
-#[derive(Default)]
130
-struct CSRGeneric {
131
- pub val: u32,
132
-}
133
-
134
-impl CSR for CSRGeneric {
135
- fn read(&self) -> Result<u32, ExceptionCause> {
136
- Ok(self.val)
137
- }
138
139
- fn write(&mut self, val: u32) -> Result<(), ExceptionCause> {
140
- self.val = val;
141
- Ok(())
142
143
144
145
#[derive(Default)]
146
struct CSRFlagGroup {
147
flags: SharedFlags,
0 commit comments