[PATCH 1/4] SPARC: window overflow optimization

Daniel Hellstrom daniel at gaisler.com
Wed Nov 19 15:35:49 UTC 2014


I see no need for waiting the 3 instruction delay for wim to be
written in this case, since the STD after does not depend on WIM
---
 c/src/lib/libcpu/sparc/reg_win/window.S |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libcpu/sparc/reg_win/window.S b/c/src/lib/libcpu/sparc/reg_win/window.S
index dffac6a..453cc74 100644
--- a/c/src/lib/libcpu/sparc/reg_win/window.S
+++ b/c/src/lib/libcpu/sparc/reg_win/window.S
@@ -61,7 +61,6 @@ SYM(window_overflow_trap_handler):
 
         save                             ! Get into window to be saved.
         mov  %g1, %wim                   ! load new WIM
-        nop; nop; nop                    ! 3 slot delay
         std  %l0, [%sp + 0x00]           ! save local register set
         std  %l2, [%sp + 0x08]
         std  %l4, [%sp + 0x10]
-- 
1.7.0.4



More information about the devel mailing list