target: arm: s5l8702: crt0.S: use APSR_nzcv instead of r15 in mrc operand

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Sat, 16 May 2026 12:32:37 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit b350d6e06652966611982ad2094bc5e735e07eab
Author: mojyack <[email protected]>
Date:   Fri Apr 24 22:44:48 2026 +0900

    target: arm: s5l8702: crt0.S: use APSR_nzcv instead of r15 in mrc operand
    
    Change-Id: I7e0cf0325407cade9d95d73af6f8dceb92bf3155

diff --git a/firmware/target/arm/s5l8702/crt0.S b/firmware/target/arm/s5l8702/crt0.S
index 4fbff28b58..d89016d99e 100644
--- a/firmware/target/arm/s5l8702/crt0.S
+++ b/firmware/target/arm/s5l8702/crt0.S
@@ -93,7 +93,7 @@ start_loc:
     mcr     p15, 0, r0, c1, c0, 0   /* disable caches and protection unit */
 
 .cleancache:
-    mrc     p15, 0, r15, c7, c10, 3 /* test and clean dcache */
+    mrc     p15, 0, APSR_nzcv, c7, c10, 3 /* test and clean dcache */
     bne     .cleancache
     mov     r0, #0
     mcr     p15, 0, r0, c7, c10, 4  /* drain write buffer */
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs