about summary refs log tree commit diff
path: root/time/ftime.c
diff options
context:
space:
mode:
authorDaniel Cederman <cederman@gaisler.com>2024-01-15 15:53:45 +0100
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-01-18 08:27:44 -0300
commit82a35070ec35616074343b8c4ffe6b1cff7e2793 (patch)
tree652eb6108868dbca0c1156b1ed40a15046f55ca8 /time/ftime.c
parent3bb1350c3681c5ca330dd92500dc59fba94b37eb (diff)
downloadglibc-82a35070ec35616074343b8c4ffe6b1cff7e2793.tar.gz
glibc-82a35070ec35616074343b8c4ffe6b1cff7e2793.tar.xz
glibc-82a35070ec35616074343b8c4ffe6b1cff7e2793.zip
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: Daniel Cederman <cederman@gaisler.com>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'time/ftime.c')
0 files changed, 0 insertions, 0 deletions