OSDN Git Service

MIPS: Add FP_MODE regset support
authorMaciej W. Rozycki <macro@mips.com>
Tue, 15 May 2018 22:40:18 +0000 (23:40 +0100)
committerPaul Burton <paul.burton@mips.com>
Thu, 19 Jul 2018 20:58:44 +0000 (13:58 -0700)
commit1ae22a0e35636efceab83728ba30b013df761592
tree731483ca0394e955c233c3d944881e6fbc12155f
parent44109c60176ae73924a42a6bef64ef151aba9095
MIPS: Add FP_MODE regset support

Define an NT_MIPS_FP_MODE core file note and implement a corresponding
regset holding the state handled by PR_SET_FP_MODE and PR_GET_FP_MODE
prctl(2) requests.  This lets debug software correctly interpret the
contents of floating-point general registers both in live debugging and
in core files, and also switch floating-point modes of a live process.

[paul.burton@mips.com:
  - Changed NT_MIPS_FP_MODE to 0x801 to match first nibble of
    NT_MIPS_DSP, which was also changed to avoid a conflict.]

Signed-off-by: Maciej W. Rozycki <macro@mips.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/19331/
Cc: James Hogan <jhogan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
arch/mips/kernel/ptrace.c
include/uapi/linux/elf.h