Skip to content

Commit faec0e8

Browse files
committed
[ot] hw/opentitan: otbn: remove dead code
Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
1 parent 1e6e888 commit faec0e8

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

hw/opentitan/otbn/otbn/src/csrs.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -126,22 +126,6 @@ impl WSRAddr {
126126
}
127127
}
128128

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-
145129
#[derive(Default)]
146130
struct CSRFlagGroup {
147131
flags: SharedFlags,

0 commit comments

Comments
 (0)