mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
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.
This commit is contained in:
parent
c72607e0bf
commit
a527b3a300
1 changed files with 1 additions and 1 deletions
|
|
@ -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! (
|
||||
|
|
|
|||
Loading…
Reference in a new issue