diff --git a/loader/src/asm.rs b/loader/src/asm.rs index 8cf5ddb7b..1d29727c6 100644 --- a/loader/src/asm.rs +++ b/loader/src/asm.rs @@ -16,7 +16,7 @@ pub extern "C" fn _start(_kernel_args: usize, loader_sig: usize) { // Stub for clearing IFRAM & RAM on Cramium target. This is required // to clear the parity check bits, which are randomly set on boot. System will // eventually hang if these bits aren't cleared. - #[cfg(any(feature = "cramium-soc", feature = "cramium-fpga"))] + #[cfg(all(any(feature = "cramium-soc", feature = "cramium-fpga"), not(feature = "simulation-only")))] unsafe { #[rustfmt::skip] asm! (