fix another default case

This commit is contained in:
bunnie 2022-10-03 02:20:55 +08:00
parent 35aa11bec9
commit 8f6880faf3

View file

@ -486,7 +486,9 @@ pub fn timeout_thread(sid0: usize, sid1: usize, sid2: usize, sid3: usize) {
Some(TimeoutOpcode::SetCsr) => msg_scalar_unpack!(msg, base, _, _, _, {
csr = Some(CSR::new(base as *mut u32));
}),
#[cfg(any(feature="hosted"))]
#[cfg(any(feature="hosted",
not(any(feature="precursor", feature="renode", feature="hosted")) // default for crates.io
))]
Some(TimeoutOpcode::SetCsr) => msg_scalar_unpack!(msg, _base, _, _, _, {
// ignore the opcode in hosted mode
}),