From: William D. Jones Date: Thu, 23 Aug 2018 03:03:08 +0000 (-0400) Subject: software/bios: Gate flush_l2_cache() if L2 Cache isn't present. X-Git-Tag: 24jan2021_ls180~1634^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3146109af3aebcbe51386abea2e194c813e59750;p=litex.git software/bios: Gate flush_l2_cache() if L2 Cache isn't present. --- diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index 9fb0658c..e6e0ce24 100644 --- a/litex/soc/software/bios/boot.c +++ b/litex/soc/software/bios/boot.c @@ -27,7 +27,9 @@ static void __attribute__((noreturn)) boot(unsigned int r1, unsigned int r2, uns irq_setie(0); flush_cpu_icache(); flush_cpu_dcache(); +#ifdef L2_SIZE flush_l2_cache(); +#endif boot_helper(r1, r2, r3, addr); while(1); }