Ver código fonte

fix for riscv64

Román Cárdenas 1 ano atrás
pai
commit
93c1911ce3
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/register/mstatus.rs

+ 2 - 2
src/register/mstatus.rs

@@ -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),
         }
     }
 
@@ -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),
         }
     }