提交 d98e348e 编写于 作者: S Shinya Kuribayashi

[MIPS] Fix dcache_status()

You can't judge UNCACHED by Config.K0 LSB.
Signed-off-by: NShinya Kuribayashi <skuribay@ruby.dti.ne.jp>
上级 b0c66af5
......@@ -256,9 +256,13 @@ NESTED(mips_cache_reset, 0, ra)
*
*/
LEAF(dcache_status)
mfc0 v0, CP0_CONFIG
andi v0, v0, 1
j ra
mfc0 t0, CP0_CONFIG
li t1, CONF_CM_UNCACHED
andi t0, t0, CONF_CM_CMASK
move v0, zero
beq t0, t1, 2f
li v0, 1
2: jr ra
END(dcache_status)
/*******************************************************************************
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册