OSDN Git Service

MIPS: Don't assume 64-bit FP registers for FP regset
authorPaul Burton <paul.burton@imgtec.com>
Mon, 27 Jan 2014 15:23:07 +0000 (15:23 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Mar 2014 22:09:10 +0000 (23:09 +0100)
commit72b22bbad1e7cff4645c0f05b4d573ac301d5157
tree3c51d511969f55871797ee9665b1ec8e2c43b8fe
parent6cec7c4ad79f8fd66574044adfa284b20ee7c4fd
MIPS: Don't assume 64-bit FP registers for FP regset

When we want to access 64-bit FP register values we can only treat
consecutive registers as being consecutive in memory when the width of
an FP register equals 64 bits. This assumption will not remain true once
MSA support is introduced, so provide a code path which copies each 64
bit FP register value in turn when the width of an FP register differs
from 64 bits.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6427/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/ptrace.c