target: arm: mmu-arm.S: use APSR_nzcv instead of r15 in mrc operand

Change-Id: Ie27d323ac497fe8d63cee89d2c0722caa293cd25
This commit is contained in:
mojyack 2026-04-24 22:43:38 +09:00
parent 127428e32d
commit c4abbdd718

View file

@ -336,7 +336,7 @@ discard_dcache_range:
commit_dcache:
#ifdef HAVE_TEST_AND_CLEAN_CACHE
mrc p15, 0, r15, c7, c10, 3 @ test and clean dcache
mrc p15, 0, APSR_nzcv, c7, c10, 3 @ test and clean dcache
bne commit_dcache
mov r1, #0
#else
@ -367,7 +367,7 @@ commit_dcache:
commit_discard_dcache:
#ifdef HAVE_TEST_AND_CLEAN_CACHE
mrc p15, 0, r15, c7, c14, 3 @ test, clean and invalidate dcache
mrc p15, 0, APSR_nzcv, c7, c14, 3 @ test, clean and invalidate dcache
bne commit_discard_dcache
mov r1, #0
#else