armv7/r:cp15_cache_all: fix error in LineSize 'r5' mask

r5 = r3 & r1

Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
zhuyanlin 2022-04-19 20:55:32 +08:00 committed by Masayuki Ishikawa
parent 6ad2e7f5de
commit ec8fa7d2bf
5 changed files with 5 additions and 5 deletions

View file

@ -99,7 +99,7 @@ cp15_flush_dcache_all:
and r0, r3, r1, lsr #13 /* r0=NumSets (number of sets - 1) */
ldr r3,=0x7 /* Isolate the LineSize field (bits 0-2) */
and r5, r3 /* r4=(Log2LineSize - 2) in word */
and r5, r3, r1 /* r4=(Log2LineSize - 2) in word */
add r5, #4 /* r4=Set/way operation line shfit */
ldr r3, =0x3ff /* Isolate the way field (bits 3-12) */

View file

@ -99,7 +99,7 @@ cp15_invalidate_dcache_all:
and r0, r3, r1, lsr #13 /* r0=NumSets (number of sets - 1) */
ldr r3,=0x7 /* Isolate the LineSize field (bits 0-2) */
and r5, r3 /* r4=(Log2LineSize - 2) in word */
and r5, r3, r1 /* r4=(Log2LineSize - 2) in word */
add r5, #4 /* r4=Set/way operation line shfit */
ldr r3, =0x3ff /* Isolate the way field (bits 3-12) */

View file

@ -99,7 +99,7 @@ cp15_clean_dcache_all:
and r0, r3, r1, lsr #13 /* r0=NumSets (number of sets - 1) */
ldr r3,=0x7 /* Isolate the LineSize field (bits 0-2) */
and r5, r3 /* r4=(Log2LineSize - 2) in word */
and r5, r3, r1 /* r4=(Log2LineSize - 2) in word */
add r5, #4 /* r4=Set/way operation line shfit */
ldr r3, =0x3ff /* Isolate the way field (bits 3-12) */

View file

@ -99,7 +99,7 @@ cp15_flush_dcache_all:
and r0, r3, r1, lsr #13 /* r0=NumSets (number of sets - 1) */
ldr r3,=0x7 /* Isolate the LineSize field (bits 0-2) */
and r5, r3 /* r4=(Log2LineSize - 2) in word */
and r5, r3, r1 /* r4=(Log2LineSize - 2) in word */
add r5, #4 /* r4=Set/way operation line shfit */
ldr r3, =0x3ff /* Isolate the way field (bits 3-12) */

View file

@ -99,7 +99,7 @@ cp15_invalidate_dcache_all:
and r0, r3, r1, lsr #13 /* r0=NumSets (number of sets - 1) */
ldr r3,=0x7 /* Isolate the LineSize field (bits 0-2) */
and r5, r3 /* r4=(Log2LineSize - 2) in word */
and r5, r3, r1 /* r4=(Log2LineSize - 2) in word */
add r5, #4 /* r4=Set/way operation line shfit */
ldr r3, =0x3ff /* Isolate the way field (bits 3-12) */