Skip to content

Commit 93c1911

Browse files
committed
fix for riscv64
1 parent 438b062 commit 93c1911

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/register/mstatus.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ impl Mstatus {
210210
#[cfg(riscv32)]
211211
() => XLEN::XLEN32,
212212
#[cfg(not(riscv32))]
213-
() => XLEN::from((self.bits() >> 32) as u8 & 0x3),
213+
() => XLEN::from((self.bits >> 32) as u8 & 0x3),
214214
}
215215
}
216216

@@ -223,7 +223,7 @@ impl Mstatus {
223223
#[cfg(riscv32)]
224224
() => XLEN::XLEN32,
225225
#[cfg(not(riscv32))]
226-
() => XLEN::from((self.bits() >> 34) as u8 & 0x3),
226+
() => XLEN::from((self.bits >> 34) as u8 & 0x3),
227227
}
228228
}
229229

0 commit comments

Comments
 (0)