sh: Fix ptrace fpu state initialisation
authorPhil Edworthy <Phil.Edworthy@renesas.com>
Fri, 18 Mar 2011 14:16:31 +0000 (14:16 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 23 Mar 2011 13:17:52 +0000 (22:17 +0900)
commitc49b6ecf0870e78fa40497cd8b142915c1d5c7c9
tree17a0bb980bbf9ce734f62068016e69d4f46175ac
parent3f4caa8157449b96f8b166c7a98ee40c4bc35a55
sh: Fix ptrace fpu state initialisation

Commit 0ea820cf introduced the PTRACE_GETFPREGS/SETFPREGS cmds,
but gdb-server still accesses the FPU state using the
PTRACE_PEEKUSR/POKEUSR commands. In this case, xstate was not
initialised.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Cc: stable@kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/ptrace_32.c
arch/sh/kernel/ptrace_64.c