diff options
author | Paul Burton <paul.burton@imgtec.com> | 2015-01-30 13:09:37 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-03-27 19:42:47 +0100 |
commit | 84ab45b33858a87632e1f5e207e302bf48eaf52e (patch) | |
tree | cb2816ad87e3917b4d400660d8cc3025be373f1d /CREDITS | |
parent | MIPS: prevent FP context set via ptrace being discarded (diff) | |
download | linux-84ab45b33858a87632e1f5e207e302bf48eaf52e.tar.xz linux-84ab45b33858a87632e1f5e207e302bf48eaf52e.zip |
MIPS: disable FPU if the mode is unsupported
The expected semantics of __enable_fpu are for the FPU to be enabled
in the given mode if possible, otherwise for the FPU to be left
disabled and SIGFPE returned. The FPU was incorrectly being left
enabled in cases where the desired value for FR was unavailable.
Without ensuring the FPU is disabled in this case, it would be
possible for userland to go on to execute further FP instructions
natively in the incorrect mode, rather than those instructions being
trapped & emulated as they need to be.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9167/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions