* i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
* i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
i387_fill_fsave and i387_fill_fxsave calls by inline copies.
* i386-nto-tdep.c (i386nto_regset_fill): Likewise.
* i386gnu-nat.c (store_fpregs): Likewise.
* i386v4-nat.c (fill_fpregset): Likewise.
* go32-nat.c (store_register, go32_store_registers): Likewise.
+2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
+ * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
+ * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
+ i387_fill_fsave and i387_fill_fxsave calls by inline copies.
+ * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
+ * i386gnu-nat.c (store_fpregs): Likewise.
+ * i386v4-nat.c (fill_fpregset): Likewise.
+ * go32-nat.c (store_register, go32_store_registers): Likewise.
+
2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
* cris-tdep.c (supply_gregset): Rename to ...
regcache_raw_collect (current_regcache, regno,
(char *) &a_tss + regno_mapping[regno].tss_ofs);
else if (i386_fp_regnum_p (regno) || i386_fpc_regnum_p (regno))
- i387_fill_fsave ((char *) &npx, regno);
+ i387_collect_fsave (current_regcache, regno, &npx);
else
internal_error (__FILE__, __LINE__,
_("Invalid register no. %d in store_register."), regno);
{
for (r = 0; r < FP0_REGNUM; r++)
store_register (r);
- i387_fill_fsave ((char *) &npx, -1);
+ i387_collect_fsave (current_regcache, -1, &npx);
}
}
void
fill_fpregset (elf_fpregset_t *fpregsetp, int regno)
{
- i387_fill_fsave ((char *) fpregsetp, regno);
+ i387_collect_fsave (current_regcache, regno, fpregsetp);
}
#ifdef HAVE_PTRACE_GETREGS
void
fill_fpxregset (elf_fpxregset_t *fpxregsetp, int regno)
{
- i387_fill_fxsave ((char *) fpxregsetp, regno);
+ i387_collect_fxsave (current_regcache, regno, fpxregsetp);
}
/* Fetch all registers covered by the PTRACE_GETFPXREGS request from
else if (regset == NTO_REG_FLOAT)
{
if (nto_cpuinfo_valid && nto_cpuinfo_flags | X86_CPU_FXSR)
- i387_fill_fxsave (data, -1);
+ i387_collect_fxsave (current_regcache, -1, data);
else
- i387_fill_fsave (data, -1);
+ i387_collect_fsave (current_regcache, -1, data);
}
else
return -1;
/* FIXME: kettenis/2001-07-15: Is this right? Should we somehow
take into account DEPRECATED_REGISTER_VALID like the old code did? */
- i387_fill_fsave (state.hw_state, regno);
+ i387_collect_fsave (current_regcache, regno, state.hw_state);
err = thread_set_state (thread->port, i386_FLOAT_STATE,
(thread_state_t) &state, i386_FLOAT_STATE_COUNT);
if (FP0_REGNUM == 0)
return;
- i387_fill_fsave ((char *) fpregsetp, regno);
+ i387_collect_fsave (current_regcache, regno, fpregsetp);
}
#endif /* HAVE_FPREGSET_T */
}
#undef I387_ST0_REGNUM
}
-
-/* Fill register REGNUM (if it is a floating-point register) in *FSAVE
- with the value in GDB's register cache. If REGNUM is -1, do this
- for all registers. This function doesn't touch any of the reserved
- bits in *FSAVE. */
-
-void
-i387_fill_fsave (void *fsave, int regnum)
-{
- i387_collect_fsave (current_regcache, regnum, fsave);
-}
\f
/* At fxsave_offset[REGNUM] you'll find the offset to the location in
#undef I387_NUM_XMM_REGS
}
-/* Fill register REGNUM (if it is a floating-point or SSE register) in
- *FXSAVE with the value in GDB's register cache. If REGNUM is -1, do
- this for all registers. This function doesn't touch any of the
- reserved bits in *FXSAVE. */
-
-void
-i387_fill_fxsave (void *fxsave, int regnum)
-{
- i387_collect_fxsave (current_regcache, regnum, fxsave);
-}
-
/* Recreate the FTW (tag word) valid bits from the 80-bit FP data in
*RAW. */
extern void i387_collect_fsave (const struct regcache *regcache, int regnum,
void *fsave);
-/* Fill register REGNUM (if it is a floating-point register) in *FSAVE
- with the value in GDB's register cache. If REGNUM is -1, do this
- for all registers. This function doesn't touch any of the reserved
- bits in *FSAVE. */
-
-extern void i387_fill_fsave (void *fsave, int regnum);
-
/* Fill register REGNUM in REGCACHE with the appropriate
floating-point or SSE register value from *FXSAVE. This function
masks off any of the reserved bits in *FXSAVE. */
extern void i387_collect_fxsave (const struct regcache *regcache, int regnum,
void *fxsave);
-/* Fill register REGNUM (if it is a floating-point or SSE register) in
- *FXSAVE with the value in GDB's register cache. If REGNUM is -1, do
- this for all registers. This function doesn't touch any of the
- reserved bits in *FXSAVE. */
-
-extern void i387_fill_fxsave (void *fxsave, int regnum);
-
/* Prepare the FPU stack in REGCACHE for a function return. */
extern void i387_return_value (struct gdbarch *gdbarch,