]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MIPS: mips32/cache.S: remove superfluous register assignment
authorGabor Juhos <juhosg@openwrt.org>
Wed, 12 Jun 2013 16:02:46 +0000 (18:02 +0200)
committerTom Rini <trini@ti.com>
Wed, 24 Jul 2013 13:51:05 +0000 (09:51 -0400)
The t4 register already holds the cache
line size, and the value of the register
is not changed in mips_init_icache.

Get the cache line size value from t4 for
mips_init_dcache as well and remove the
superfluous assignment of t5 register.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
arch/mips/cpu/mips32/cache.S

index 117fc56df7944ee2135a5acd7c94735f2cd73e36..40bb46e5b68bf25d9d3ad860ba9714d22f64dc14 100644 (file)
@@ -129,7 +129,6 @@ NESTED(mips_cache_reset, 0, ra)
        li      t2, CONFIG_SYS_ICACHE_SIZE
        li      t3, CONFIG_SYS_DCACHE_SIZE
        li      t4, CONFIG_SYS_CACHELINE_SIZE
-       move    t5, t4
 
        li      v0, MIPS_MAX_CACHE_SIZE
 
@@ -164,7 +163,7 @@ NESTED(mips_cache_reset, 0, ra)
         * then initialize D-cache.
         */
        move    a1, t3
-       move    a2, t5
+       move    a2, t4
        PTR_LA  t7, mips_init_dcache
        jalr    t7