diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index 291efc835..52532aa46 100644 --- a/litex/soc/software/bios/sdram.c +++ b/litex/soc/software/bios/sdram.c @@ -551,7 +551,9 @@ static int memtest_bus(void) array[i] = ONEZERO; } flush_cpu_dcache(); +#ifdef L2_SIZE flush_l2_cache(); +#endif for(i=0;i