projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0c66af
)
[MIPS] Fix dcache_status()
author
Shinya Kuribayashi
<skuribay@ruby.dti.ne.jp>
Tue, 25 Mar 2008 12:30:07 +0000
(21:30 +0900)
committer
Shinya Kuribayashi
<skuribay@ruby.dti.ne.jp>
Tue, 25 Mar 2008 12:30:07 +0000
(21:30 +0900)
You can't judge UNCACHED by Config.K0 LSB.
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
cpu/mips/cache.S
patch
|
blob
|
history
diff --git
a/cpu/mips/cache.S
b/cpu/mips/cache.S
index bb42616926e3a2dd74a2e39615182e63fc169364..e6f31751bfff9870fd473dee8d0af04e67124596 100644
(file)
--- a/
cpu/mips/cache.S
+++ b/
cpu/mips/cache.S
@@
-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)
/*******************************************************************************