From: Florent Kermarrec Date: Mon, 26 Nov 2018 17:37:45 +0000 (+0100) Subject: bios/sdram: flush l2 cache only when present X-Git-Tag: 24jan2021_ls180~1457 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=909cff1940a839737e438e043b582df8fe9ebf98;p=litex.git bios/sdram: flush l2 cache only when present --- diff --git a/litex/soc/software/bios/sdram.c b/litex/soc/software/bios/sdram.c index 291efc83..52532aa4 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