--- grub-2.06/grub-core/kern/riscv/cache_flush.S.orig	2019-04-23 10:54:47.000000000 +0200
+++ grub-2.06/grub-core/kern/riscv/cache_flush.S	2022-12-24 10:27:52.755638867 +0100
@@ -40,5 +40,5 @@
  * a2 - line size
  */
 FUNCTION(grub_arch_invalidate_icache_range)
-	fence.i
+	fence rw,rw
 	ret
