Replace no-op with unimplemented!()

This commit is contained in:
Vadim Kaushan 2018-12-19 00:01:36 +03:00
parent 4e16dd85ed
commit b790a0e92a
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ macro_rules! instruction {
#[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))]
() => asm!($asm :::: "volatile"),
#[cfg(not(any(target_arch = "riscv32", target_arch = "riscv64")))]
() => {}
() => unimplemented!(),
}
}
)

View File

@ -11,7 +11,7 @@ pub unsafe fn disable() {
#[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))]
() => mstatus::clear_mie(),
#[cfg(not(any(target_arch = "riscv32", target_arch = "riscv64")))]
() => {}
() => unimplemented!(),
}
}
@ -26,7 +26,7 @@ pub unsafe fn enable() {
#[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))]
() => mstatus::set_mie(),
#[cfg(not(any(target_arch = "riscv32", target_arch = "riscv64")))]
() => {}
() => unimplemented!(),
}
}