From a527b3a3008c312f051acf3859209a2d922c9064 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 30 Nov 2024 02:22:47 +0800 Subject: [PATCH] gate RAM clearing behind not(simulation-only) feature flag RAM clearing takes a lot of time in simulation and is not necessary, hence the feature gate option. --- loader/src/asm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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! (