Browse Source

Merge pull request #8 from rajnesh-kanwal/fix_cache_issue

Fix I and D cache synchronization issue
MichaelZhuxx 2 years ago
parent
commit
2e2f6faaf1
1 changed files with 2 additions and 0 deletions
  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