Skip to content

Commit 75c0048

Browse files
hegzaromancardenas
andauthored
riscv: simplify macro call in riscv/src/register/minstret.rs
Co-authored-by: Román Cárdenas Rodríguez <rcardenas.rod@gmail.com>
1 parent abb6f33 commit 75c0048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv/src/register/minstret.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
read_csr_as_usize!(0xB02);
44
write_csr_as_usize!(0xB02);
55
read_composite_csr!(super::minstreth::read(), read());
6-
write_composite_csr!(|bits| super::minstreth::write(bits), |bits| write(bits));
6+
write_composite_csr!(super::minstreth::write, write);

0 commit comments

Comments
 (0)