13: Replace no-op with unimplemented!() r=dvc94ch a=Disasm



Co-authored-by: Vadim Kaushan <admin@disasm.info>
This commit is contained in:
bors[bot] 2018-12-18 22:22:42 +00:00
commit ca737e7a48
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!(),
}
}