From 909cff1940a839737e438e043b582df8fe9ebf98 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 26 Nov 2018 18:37:45 +0100 Subject: [PATCH] bios/sdram: flush l2 cache only when present --- litex/soc/software/bios/sdram.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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