xiaoxiang781216 commented on a change in pull request #5650:
URL: https://github.com/apache/incubator-nuttx/pull/5650#discussion_r816555456



##########
File path: arch/arm/src/armv7-a/cp15_clean_dcache_all.S
##########
@@ -91,19 +91,32 @@
 
 cp15_clean_dcache_all:
 
+       push            {r4, r5}
+
        mrc             CP15_CCSIDR(r1)                 /* Read the Cache Size 
Identification Register */
+       mov             r5, r1
 
        ldr             r3, =0x7fff                     /* Isolate the NumSets 
field (bits 13-27) */
        and             r0, r3, r1, lsr #13             /* r0=NumSets (number 
of sets - 1) */
 
        ldr             r3, =0x3ff                      /* Isolate the way 
field (bits 3-12) */
        and             r1, r3, r1, lsr #3              /* r1=(number of ways - 
1) */
 
+       add             r1, #1
+       clz             r4, r1
+       add             r4, #1                          /* r4=Set/way operation 
Way shift */

Review comment:
       add r4, r1, #1
   clz  r4
   add r4, #1




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to