[PATCH v2 1/3] RISC-V/Linux/native: Determine FLEN dynamically

Jim Wilson jimw@sifive.com
Wed Jan 29 23:26:00 GMT 2020


On Wed, Jan 29, 2020 at 10:13 AM Maciej W. Rozycki <macro@wdc.com> wrote:
>         gdb/
>         * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
>         (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
>         offsets according to FLEN determined.
>         (riscv_linux_nat_target::read_description): Determine FLEN
>         dynamically.
>         (riscv_linux_nat_target::fetch_registers): Size regset buffer
>         according to FLEN determined.
>         (riscv_linux_nat_target::store_registers): Likewise.

Looks OK to me, though I'm not an official reviewer.

I did notice a reference to FGR in a comment that should presumably be
FPR, but that is a very minor issue.

Jim



More information about the Gdb-patches mailing list