diff options
Diffstat (limited to 'gdb/riscv-fbsd-tdep.c')
-rw-r--r-- | gdb/riscv-fbsd-tdep.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/gdb/riscv-fbsd-tdep.c b/gdb/riscv-fbsd-tdep.c index 4b5f3d3..b9b3ef1 100644 --- a/gdb/riscv-fbsd-tdep.c +++ b/gdb/riscv-fbsd-tdep.c @@ -53,32 +53,16 @@ static const struct regcache_map_entry riscv_fbsd_fpregmap[] = { 0 } }; -/* Supply the general-purpose registers stored in GREGS to REGCACHE. - This function only exists to supply the always-zero x0 in addition - to the registers in GREGS. */ - -static void -riscv_fbsd_supply_gregset (const struct regset *regset, - struct regcache *regcache, int regnum, - const void *gregs, size_t len) -{ - regcache->supply_regset (&riscv_fbsd_gregset, regnum, gregs, len); - if (regnum == -1 || regnum == RISCV_ZERO_REGNUM) - regcache->raw_supply_zeroed (RISCV_ZERO_REGNUM); -} - /* Register set definitions. */ const struct regset riscv_fbsd_gregset = { - riscv_fbsd_gregmap, - riscv_fbsd_supply_gregset, regcache_collect_regset + riscv_fbsd_gregmap, riscv_supply_regset, regcache_collect_regset }; const struct regset riscv_fbsd_fpregset = { - riscv_fbsd_fpregmap, - regcache_supply_regset, regcache_collect_regset + riscv_fbsd_fpregmap, riscv_supply_regset, regcache_collect_regset }; /* Implement the "iterate_over_regset_sections" gdbarch method. */ |