Merge commit 'u-boot/master' into for-1.3.1
[oweals/u-boot.git] / cpu / bf533 / cpu.c
index 8b2cd71dfa699a4983bc9da399580a07921a6ac4..8118861f8d86fe4b9f0421f67ccaede04b6663ba 100644 (file)
@@ -93,7 +93,7 @@ void icache_enable(void)
 
        /* Fill the rest with invalid entry */
        if (j <= 15) {
-               for (; j <= 16; j++) {
+               for (; j < 16; j++) {
                        debug("filling %i with 0", j);
                        *I1++ = 0x0;
                }
@@ -169,7 +169,7 @@ void dcache_enable(void)
 
        /* Fill the rest with invalid entry */
        if (j <= 15) {
-               for (; j <= 16; j++) {
+               for (; j < 16; j++) {
                        debug("filling %i with 0", j);
                        *I1++ = 0x0;
                }