[PATCH 25/26] sparc,leon: avoid triggering LEON3FT errata TN-0009
Daniel Hellstrom
daniel at gaisler.com
Mon Jun 29 11:28:12 UTC 2020
---
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