[PATCH 1/4] SPARC: window overflow optimization

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Nov 20 08:56:11 UTC 2014


Maybe you should add a comment that normally 3 nops are necessary, but 
in this case it is not.

On 19/11/14 16:35, Daniel Hellstrom wrote:
> 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]

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list