Browse Source

Small fix

luojia65 4 years ago
parent
commit
65f31cbfa8
1 changed files with 1 additions and 4 deletions
  1. 1 4
      platform/qemu/src/main.rs

+ 1 - 4
platform/qemu/src/main.rs

@@ -217,10 +217,7 @@ fn main() -> ! {
     unsafe {
         mepc::write(_s_mode_start as usize);
         mstatus::set_mpp(MPP::Supervisor);
-        #[cfg(riscv)] 
-        return rustsbi::enter_privileged(mhartid::read(), dtb_pa);
-        #[cfg(not(riscv))] 
-        unreachable!()
+        rustsbi::enter_privileged(mhartid::read(), dtb_pa)
     }
 }