mips/cache: Add missing nop's in delay slots

Lack of them causes random instructions to be executed before the
jump really happens.

Signed-off-by: Vladimir Serbinenko <phcoder@google.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Daniel Kiper 2020-05-15 14:30:07 +02:00
parent c543d67810
commit eb46ee98bc

View file

@ -7,6 +7,7 @@
FUNCTION (grub_arch_sync_caches)
#include "cache_flush.S"
j $ra
nop
FUNCTION (grub_arch_sync_dma_caches)
move $t2, $a0
@ -66,3 +67,4 @@ FUNCTION (grub_arch_sync_dma_caches)
sync_op
jr $ra
nop