Skip to content

Commit

Permalink
Make mstatus::write(Mstatus) available
Browse files Browse the repository at this point in the history
Allow `Mstatus` values to be directly written back to the CSR.
  • Loading branch information
jsgf committed May 7, 2024
1 parent fa989e9 commit e79fdf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv/src/register/mstatus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ impl Mstatus {
}

read_csr_as!(Mstatus, 0x300);
write_csr!(0x300);
write_csr_as!(Mstatus, 0x300);
set!(0x300);
clear!(0x300);

Expand Down

0 comments on commit e79fdf7

Please sign in to comment.