From: Florent Kermarrec Date: Thu, 16 Aug 2018 17:47:43 +0000 (+0200) Subject: bios/boot: flush all caches before running from ram X-Git-Tag: 24jan2021_ls180~1650 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb5b4ac468ff5ddd1d1206d0bb9e721bde98ae94;p=litex.git bios/boot: flush all caches before running from ram --- diff --git a/litex/soc/software/bios/boot.c b/litex/soc/software/bios/boot.c index 9e5a4dc7..9fb0658c 100644 --- a/litex/soc/software/bios/boot.c +++ b/litex/soc/software/bios/boot.c @@ -26,6 +26,8 @@ static void __attribute__((noreturn)) boot(unsigned int r1, unsigned int r2, uns irq_setmask(0); irq_setie(0); flush_cpu_icache(); + flush_cpu_dcache(); + flush_l2_cache(); boot_helper(r1, r2, r3, addr); while(1); }