aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorDavid Daney <[email protected]>2009-11-02 19:33:46 +0000
committerRalf Baechle <[email protected]>2009-11-13 17:10:37 +0000
commitda0bac33413b2888d3623dad3ad19ce76b688f07 (patch)
tree6d95ce81145b0a11868dd38f5571f58d9d8a79e6 /fs/proc/array.c
parentLinux 2.6.32-rc7 (diff)
downloadkernel-da0bac33413b2888d3623dad3ad19ce76b688f07.tar.gz
kernel-da0bac33413b2888d3623dad3ad19ce76b688f07.zip
MIPS: Fix emulation of 64-bit FPU on FPU-less 64-bit CPUs.
Running a 64-bit kernel on a 64-bit CPU without an FPU would cause the emulator to run in 32-bit mode. The c0_Status.FR bit is wired to zero on systems without an FPU, so using that bit to decide how the emulator behaves doesn't allow for proper emulation on 64-bit FPU-less processors. Instead, we need to select the emulator mode based on the user-space ABI. Since the thread flag TIF_32BIT_REGS is used to set c0_Status.FR, we can just use it to decide if the emulator should be in 32-bit or 64-bit mode. Signed-off-by: David Daney <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions