瀏覽代碼

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>
Thomas Chou 9 年之前
父節點
當前提交
9208d7eba1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/nios2/cpu/start.S

+ 1 - 1
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: