diff --git a/riscv/src/register/mstatus.rs b/riscv/src/register/mstatus.rs index 507aea47..6149b467 100644 --- a/riscv/src/register/mstatus.rs +++ b/riscv/src/register/mstatus.rs @@ -481,7 +481,7 @@ impl Mstatus { } read_csr_as!(Mstatus, 0x300); -write_csr!(0x300); +write_csr_as!(Mstatus, 0x300); set!(0x300); clear!(0x300);