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:
parent
c543d67810
commit
eb46ee98bc
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
FUNCTION (grub_arch_sync_caches)
|
FUNCTION (grub_arch_sync_caches)
|
||||||
#include "cache_flush.S"
|
#include "cache_flush.S"
|
||||||
j $ra
|
j $ra
|
||||||
|
nop
|
||||||
|
|
||||||
FUNCTION (grub_arch_sync_dma_caches)
|
FUNCTION (grub_arch_sync_dma_caches)
|
||||||
move $t2, $a0
|
move $t2, $a0
|
||||||
|
@ -66,3 +67,4 @@ FUNCTION (grub_arch_sync_dma_caches)
|
||||||
sync_op
|
sync_op
|
||||||
|
|
||||||
jr $ra
|
jr $ra
|
||||||
|
nop
|
||||||
|
|
Loading…
Reference in a new issue