[PATCHv2 25/26] sparc,leon: avoid triggering LEON3FT errata TN-0009

Daniel Hellstrom daniel at gaisler.com
Fri Oct 16 11:51:42 UTC 2020


Update #4154.
---
 cpukit/score/cpu/sparc/cpu_asm.S | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cpukit/score/cpu/sparc/cpu_asm.S b/cpukit/score/cpu/sparc/cpu_asm.S
index bfad3fb..1251faa 100644
--- a/cpukit/score/cpu/sparc/cpu_asm.S
+++ b/cpukit/score/cpu/sparc/cpu_asm.S
@@ -523,8 +523,9 @@ dont_do_the_window:
          * context.
          */
         andcc    %l0, %l5, %g0
-        bne,a    dont_switch_stacks
-         st      %fsr, [%g6 + SPARC_PER_CPU_FSR_OFFSET]
+        beq      dont_switch_stacks
+         nop
+        st      %fsr, [%g6 + SPARC_PER_CPU_FSR_OFFSET]
 #endif
 
 dont_switch_stacks:
-- 
2.7.4



More information about the devel mailing list