diff options
author | Shinya Kuribayashi <skuribay@ruby.dti.ne.jp> | 2008-03-25 21:30:07 +0900 |
---|---|---|
committer | Shinya Kuribayashi <skuribay@ruby.dti.ne.jp> | 2008-03-25 21:30:07 +0900 |
commit | d98e348e2ed5aab8f7a6471ff628ab0688b8a459 (patch) | |
tree | c0fc5293a433bd04fb0b26d7624c59d1fbdb8452 | |
parent | b0c66af53ec9385ac2d1cc2e5d7d1ecdc81caf34 (diff) | |
download | u-boot-midas-d98e348e2ed5aab8f7a6471ff628ab0688b8a459.tar.gz u-boot-midas-d98e348e2ed5aab8f7a6471ff628ab0688b8a459.tar.bz2 u-boot-midas-d98e348e2ed5aab8f7a6471ff628ab0688b8a459.zip |
[MIPS] Fix dcache_status()
You can't judge UNCACHED by Config.K0 LSB.
Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
-rw-r--r-- | cpu/mips/cache.S | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpu/mips/cache.S b/cpu/mips/cache.S index bb42616926..e6f31751bf 100644 --- 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) /******************************************************************************* |