From eb46ee98bca8495f926fb313284aadd04678e2bc Mon Sep 17 00:00:00 2001 From: Daniel Kiper Date: Fri, 15 May 2020 14:30:07 +0200 Subject: [PATCH] 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 Reviewed-by: Daniel Kiper --- grub-core/kern/mips/cache.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grub-core/kern/mips/cache.S b/grub-core/kern/mips/cache.S index fa6897e14..fa331eca1 100644 --- a/grub-core/kern/mips/cache.S +++ b/grub-core/kern/mips/cache.S @@ -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