Skip to content

Commit

Permalink
fix for riscv64
Browse files Browse the repository at this point in the history
  • Loading branch information
romancardenas committed Sep 20, 2023
1 parent 438b062 commit 93c1911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/register/mstatus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl Mstatus {
#[cfg(riscv32)]
() => XLEN::XLEN32,
#[cfg(not(riscv32))]
() => XLEN::from((self.bits() >> 32) as u8 & 0x3),
() => XLEN::from((self.bits >> 32) as u8 & 0x3),
}
}

Expand All @@ -223,7 +223,7 @@ impl Mstatus {
#[cfg(riscv32)]
() => XLEN::XLEN32,
#[cfg(not(riscv32))]
() => XLEN::from((self.bits() >> 34) as u8 & 0x3),
() => XLEN::from((self.bits >> 34) as u8 & 0x3),
}
}

Expand Down

0 comments on commit 93c1911

Please sign in to comment.