]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Add FP register ptrace support for gdb.
authorJim Wilson <jimw@sifive.com>
Thu, 18 Oct 2018 00:59:05 +0000 (17:59 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 23 Oct 2018 00:38:04 +0000 (17:38 -0700)
commitfb5c2292388337f5b607d1ab80174fb33ca62642
treec87efbb682f18144e651ecdfd79d95c71bf26087
parent573f95d856be23f659c5378df48db7df791c8bc1
RISC-V: Add FP register ptrace support for gdb.

Add a variable and a macro to describe FP registers, assuming only D is
supported.  FP code is conditional on CONFIG_FPU.  The FP regs and FCSR
are copied separately to avoid copying struct padding.  Tested by hand and
with the gdb testsuite.

Signed-off-by: Jim Wilson <jimw@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/uapi/asm/elf.h
arch/riscv/kernel/ptrace.c