[rtems commit] sparc,leon: avoid triggering LEON3FT errata TN-0009

Daniel Hellstrom danielh at rtems.org
Sun Mar 7 15:56:14 UTC 2021


Module:    rtems
Branch:    5
Commit:    2497a46a76161ef78340a7e3f54dcea44a74dd6a
Changeset: http://git.rtems.org/rtems/commit/?id=2497a46a76161ef78340a7e3f54dcea44a74dd6a

Author:    Daniel Hellstrom <daniel at gaisler.com>
Date:      Mon Nov 25 09:45:26 2019 +0100

sparc,leon: avoid triggering LEON3FT errata TN-0009

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:



More information about the vc mailing list