[rtems commit] sparc: Fix mistakenly cleared PSR[EF] bit.
Sebastian Huber
sebh at rtems.org
Fri Jun 7 05:41:34 UTC 2019
Module: rtems
Branch: master
Commit: 2a720f4e55bda7c6263862ab9de54ef1bd6f1051
Changeset: http://git.rtems.org/rtems/commit/?id=2a720f4e55bda7c6263862ab9de54ef1bd6f1051
Author: Maksim E. Kozlov <maksim.e.kozlov at gmail.com>
Date: Thu Jun 6 15:57:54 2019 +0300
sparc: Fix mistakenly cleared PSR[EF] bit.
The superfluously modified %l0 had no effect if the branch is not taken.
This change clarifies the code.
---
cpukit/score/cpu/sparc/cpu_asm.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/score/cpu/sparc/cpu_asm.S b/cpukit/score/cpu/sparc/cpu_asm.S
index 2f3ad24..d5afd5f 100644
--- a/cpukit/score/cpu/sparc/cpu_asm.S
+++ b/cpukit/score/cpu/sparc/cpu_asm.S
@@ -681,7 +681,7 @@ isr_dispatch:
*/
ld [%g6 + SPARC_PER_CPU_FP_OWNER_OFFSET], %l7
cmp %l6, %l7
- bne .Ldisable_fp
+ bne,a .Ldisable_fp
andn %l0, %l5, %l0
ba .Lthread_dispatch_done
st %g0, [%g6 + SPARC_PER_CPU_FP_OWNER_OFFSET]
More information about the vc
mailing list