浏览代码

Merge pull request #8 from rajnesh-kanwal/fix_cache_issue

Fix I and D cache synchronization issue
MichaelZhuxx 3 年之前
父节点
当前提交
2e2f6faaf1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      boot/start.S

+ 2 - 0
boot/start.S

@@ -108,6 +108,8 @@ _start:
 	j .LwaitOtherHart
 
 .enter_uboot:
+	# Synchronize the instruction and data caches.
+	fence.i
 	li t0, DEFAULT_UBOOT_ADDR
 	csrr a0, mhartid
 	la a1, 0