static void m68kbsd_supply_fpregset (struct regcache *regcache, const void *fpregs) { const char *regs = fpregs; int regnum; for (regnum = M68K_FP0_REGNUM; regnum <= M68K_FPI_REGNUM; regnum++) regcache_raw_supply (regcache, regnum, regs + m68kbsd_fpreg_offset (regnum)); }
static void m68kbsd_supply_fpregset (struct regcache *regcache, const void *fpregs) { struct gdbarch *gdbarch = get_regcache_arch (regcache); const char *regs = (const char *)fpregs; int regnum; for (regnum = M68K_FP0_REGNUM; regnum <= M68K_FPI_REGNUM; regnum++) regcache_raw_supply (regcache, regnum, regs + m68kbsd_fpreg_offset (gdbarch, regnum)); }
static void m68kbsd_collect_fpregset (struct regcache *regcache, void *fpregs, int regnum) { char *regs = fpregs; int i; for (i = M68K_FP0_REGNUM; i <= M68K_FPI_REGNUM; i++) { if (regnum == -1 || regnum == i) regcache_raw_collect (regcache, i, regs + m68kbsd_fpreg_offset (i)); } }
static void m68kbsd_collect_fpregset (const struct regcache *regcache, void *fpregs, int regnum) { struct gdbarch *gdbarch = get_regcache_arch (regcache); char *regs = fpregs; int i; for (i = M68K_FP0_REGNUM; i <= M68K_FPI_REGNUM; i++) { if (regnum == -1 || regnum == i) regcache_raw_collect (regcache, i, regs + m68kbsd_fpreg_offset (gdbarch, i)); } }
static void m68kbsd_supply_fpregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len) { const gdb_byte *regs = (const gdb_byte *)fpregs; int i; gdb_assert (len >= M68KBSD_SIZEOF_FPREGS); for (i = M68K_FP0_REGNUM; i <= M68K_PC_REGNUM; i++) { if (regnum == i || regnum == -1) regcache_raw_supply (regcache, i, regs + m68kbsd_fpreg_offset (i)); } }