Skip to content
Commit 82a35070 authored by Daniel Cederman's avatar Daniel Cederman Committed by Adhemerval Zanella
Browse files

sparc: Prevent stfsr from directly following floating-point instruction



On LEON, if the stfsr instruction is immediately following a floating-point
operation instruction in a running program, with no other instruction in
between the two, the stfsr might behave as if the order was reversed
between the two instructions and the stfsr occurred before the
floating-point operation.

Add a nop instruction before the stfsr to prevent this from happening.

Signed-off-by: default avatarDaniel Cederman <cederman@gaisler.com>
Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent 3bb1350c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment