Remove useless cfg_attr
This commit is contained in:
parent
921aa2bbec
commit
52ad774fc1
|
@ -39,7 +39,6 @@ write_csr!(0x105);
|
||||||
|
|
||||||
/// Writes the CSR
|
/// Writes the CSR
|
||||||
#[inline]
|
#[inline]
|
||||||
#[cfg_attr(not(any(target_arch = "riscv32", target_arch = "riscv64")), allow(unused_variables))]
|
|
||||||
pub unsafe fn write(addr: usize, mode: TrapMode) {
|
pub unsafe fn write(addr: usize, mode: TrapMode) {
|
||||||
_write(addr + mode as usize);
|
_write(addr + mode as usize);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue