* ppcnbsd-nat.c (fetch_inferior_registers)
(store_inferior_registers, fetch_core_registers): Changed to use fpreg[] instead of r_regs[] to access floating point registers.
This commit is contained in:
parent
7f4dbe9449
commit
6d7993318a
@ -1,3 +1,9 @@
|
||||
2001-04-30 J.T. Conklin <jtc@redback.com>
|
||||
|
||||
* ppcnbsd-nat.c (fetch_inferior_registers)
|
||||
(store_inferior_registers, fetch_core_registers): Changed to use
|
||||
fpreg[] instead of r_regs[] to access floating point registers.
|
||||
|
||||
2001-04-30 Elena Zannoni <ezannoni@redhat.com>
|
||||
|
||||
* sh-tdep.c: Get rid of the function prototypes.
|
||||
|
@ -59,7 +59,7 @@ fetch_inferior_registers (int regno)
|
||||
ptrace (PT_GETFPREGS, inferior_pid,
|
||||
(PTRACE_ARG3_TYPE) &inferior_fp_registers, 0);
|
||||
for (i = 0; i < 32; i++)
|
||||
RF (FP0_REGNUM + i, inferior_fp_registers.r_regs[i]);
|
||||
RF (FP0_REGNUM + i, inferior_fp_registers.fpreg[i]);
|
||||
#endif
|
||||
|
||||
registers_fetched ();
|
||||
@ -87,7 +87,7 @@ store_inferior_registers (int regno)
|
||||
|
||||
#ifdef PT_SETFPREGS
|
||||
for (i = 0; i < 32; i++)
|
||||
RS (FP0_REGNUM + i, inferior_fp_registers.r_regs[i]);
|
||||
RS (FP0_REGNUM + i, inferior_fp_registers.fpreg[i]);
|
||||
ptrace (PT_SETFPREGS, inferior_pid,
|
||||
(PTRACE_ARG3_TYPE) & inferior_fp_registers, 0);
|
||||
#endif
|
||||
@ -120,7 +120,7 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which,
|
||||
#ifdef PT_FPGETREGS
|
||||
/* Floating point registers */
|
||||
for (i = 0; i < 32; i++)
|
||||
RF (FP0_REGNUM + i, core_reg->freg.r_regs[i]);
|
||||
RF (FP0_REGNUM + i, core_reg->freg.fpreg[i]);
|
||||
#endif
|
||||
|
||||
registers_fetched ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user