RISC-V: Add FP register core file support.
authorJim Wilson <jimw@sifive.com>
Tue, 5 Feb 2019 01:31:10 +0000 (17:31 -0800)
committerJim Wilson <jimw@sifive.com>
Fri, 8 Feb 2019 21:23:44 +0000 (13:23 -0800)
commit617126bc8ae3c83b565aef1a454742c8a7237c14
tree312286bc904dffaa269a15679258c6d588e9b075
parent21820ebe588d89fa874cbd87c117eb9d551d870f
RISC-V: Add FP register core file support.

This adds fp reg support similar to the existing general reg support.

This fixes one gdb testsuite failure
FAIL: gdb.base/gcore.exp: corefile restored system registers
which fails without the patch because fcsr was missing.  Otherwise, no
regressions with riscv64-linux native testsuite run.

gdb/
* riscv-linux-tdep.c (riscv_linux_fregmap): New.
(riscv_linux_fregset): New.
(riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
gdb/ChangeLog
gdb/riscv-linux-tdep.c