diff --git a/litex/soc/software/liblitedram/sdram.c b/litex/soc/software/liblitedram/sdram.c index 44cab02fa..55ea65f16 100644 --- a/litex/soc/software/liblitedram/sdram.c +++ b/litex/soc/software/liblitedram/sdram.c @@ -29,10 +29,12 @@ __attribute__((unused)) static void cdelay(int i) { +#ifndef CONFIG_SIM_DISABLE_DELAYS while(i > 0) { __asm__ volatile(CONFIG_CPU_NOP); i--; } +#endif } #ifdef CSR_SDRAM_BASE