From: Sebastien Bourdeauducq Date: Wed, 14 May 2014 13:01:02 +0000 (+0200) Subject: bios: fix boot for or1k X-Git-Tag: 24jan2021_ls180~2718 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=edf567a0cdca955a2be875df348b939a2d5b5b58;p=litex.git bios: fix boot for or1k --- diff --git a/software/bios/boot-helper-lm32.S b/software/bios/boot-helper-lm32.S index d668f70f..bf3765c0 100644 --- a/software/bios/boot-helper-lm32.S +++ b/software/bios/boot-helper-lm32.S @@ -1,10 +1,4 @@ .section .text, "ax", @progbits .global boot_helper boot_helper: - /* Invalidate instruction cache */ - wcsr ICC, r0 - nop - nop - nop - nop call r4 diff --git a/software/bios/boot-helper-or1k.S b/software/bios/boot-helper-or1k.S index ce775e8b..bb37749e 100644 --- a/software/bios/boot-helper-or1k.S +++ b/software/bios/boot-helper-or1k.S @@ -1,10 +1,4 @@ .section .text, "ax", @progbits .global boot_helper boot_helper: - /* Invalidate instruction cache */ - /* FIXME: wcsr ICC, r0 */ - l.nop - l.nop - l.nop - l.nop - l.jr r7 + l.jr r6 diff --git a/software/bios/boot.c b/software/bios/boot.c index 5ba3de79..80cefdb7 100644 --- a/software/bios/boot.c +++ b/software/bios/boot.c @@ -22,6 +22,7 @@ static void __attribute__((noreturn)) boot(unsigned int r1, unsigned int r2, uns uart_sync(); irq_setmask(0); irq_setie(0); + flush_cpu_icache(); boot_helper(r1, r2, r3, addr); while(1); }