cpu/vexriscv: fix flush_cpu_icache, remove workaround on boot.c.

This commit is contained in:
Florent Kermarrec 2020-05-02 20:07:52 +02:00
parent 97e534d0b6
commit b02053357c
2 changed files with 1 additions and 4 deletions

View File

@ -10,7 +10,7 @@ extern "C" {
__attribute__((unused)) static void flush_cpu_icache(void)
{
asm volatile(
".word(0x400F)\n"
".word(0x100F)\n"
"nop\n"
"nop\n"
"nop\n"

View File

@ -43,10 +43,7 @@ static void __attribute__((noreturn)) boot(unsigned long r1, unsigned long r2, u
irq_setmask(0);
irq_setie(0);
#endif
/* FIXME: understand why flushing icache on Vexriscv make boot fail */
#ifndef __vexriscv__
flush_cpu_icache();
#endif
flush_cpu_dcache();
#ifdef CONFIG_L2_SIZE
flush_l2_cache();