From: Thomas Chou <thomas@wytron.com.tw>
Date: Tue, 3 Nov 2015 05:52:15 +0000 (+0800)
Subject: nios2: fix cached mode in clearing the BSS
X-Git-Tag: v2025.01-rc5-pxa1908~11295^2~10
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/login.html?a=commitdiff_plain;h=9208d7eba1c2f027cdd06e6ce6ec90d3889764bf;p=u-boot.git

nios2: fix cached mode in clearing the BSS

As the generic board runs in cached mode, it should not use
"stwio" which bypass the cache.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Reviewed-by: Chin Liang See <clsee@altera.com>
---

diff --git a/arch/nios2/cpu/start.S b/arch/nios2/cpu/start.S
index bb86bbf40c..54787c53ca 100644
--- a/arch/nios2/cpu/start.S
+++ b/arch/nios2/cpu/start.S
@@ -158,7 +158,7 @@ relocate_code:
 	ori	r6, r6, %lo(__bss_end)
 	beq	r5, r6, 5f
 
-4:	stwio	r0, 0(r5)
+4:	stw	r0, 0(r5)
 	addi	r5, r5, 4
 	bne	r5, r6, 4b
 5: