]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
authorUlrich Weigand <uweigand@de.ibm.com>
Sun, 6 May 2007 14:28:27 +0000 (14:28 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Sun, 6 May 2007 14:28:27 +0000 (14:28 +0000)
* 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.

gdb/ChangeLog
gdb/go32-nat.c
gdb/i386-linux-nat.c
gdb/i386-nto-tdep.c
gdb/i386gnu-nat.c
gdb/i386v4-nat.c
gdb/i387-tdep.c
gdb/i387-tdep.h

index 65efbf4147cda19a6d68913339d11046744bb59d..62afb81cc662f97f24308e57dc15c5ea165b4f48 100644 (file)
@@ -1,3 +1,14 @@
+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 ...
index c64874f4aaba8174845397eefabe892a93f86eeb..919b42ab1899456c353c147af15ea58f0a416c19 100644 (file)
@@ -497,7 +497,7 @@ store_register (int regno)
     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);
@@ -514,7 +514,7 @@ go32_store_registers (int regno)
     {
       for (r = 0; r < FP0_REGNUM; r++)
        store_register (r);
-      i387_fill_fsave ((char *) &npx, -1);
+      i387_collect_fsave (current_regcache, -1, &npx);
     }
 }
 
index dfa260e3dec4807374a059f3d39b75b6358e2fdd..8572c579a976a0b35e1b606247e01b58550b38ae 100644 (file)
@@ -303,7 +303,7 @@ supply_fpregset (elf_fpregset_t *fpregsetp)
 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
@@ -367,7 +367,7 @@ supply_fpxregset (elf_fpxregset_t *fpxregsetp)
 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
index 75acd7e84d35157a7739e1df0b585c2df7f931d8..f617faf3696e7b2982e726b90396347e6e3ec071 100644 (file)
@@ -193,9 +193,9 @@ i386nto_regset_fill (int regset, char *data)
   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;
index fa3929752016dbdb5276383ab029917e7559a32f..3c2c574f091a6e5a9f0d49516a20a16b8f089aaf 100644 (file)
@@ -186,7 +186,7 @@ store_fpregs (struct proc *thread, int regno)
 
   /* 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);
index 7d9f29a82a43a60513f5b579ffdb0fb2a1bb0dd8..6829fa6d2fae48fb18d560517bd1926f521141be 100644 (file)
@@ -154,7 +154,7 @@ fill_fpregset (fpregset_t *fpregsetp, int regno)
   if (FP0_REGNUM == 0)
     return;
 
-  i387_fill_fsave ((char *) fpregsetp, regno);
+  i387_collect_fsave (current_regcache, regno, fpregsetp);
 }
 
 #endif /* HAVE_FPREGSET_T */
index f4d6aa6e1dd7335926b077fe2f2aa8403d80fc1d..5dce37fa8db041a096e49a4b1e5039c28ce2cc3e 100644 (file)
@@ -473,17 +473,6 @@ i387_collect_fsave (const struct regcache *regcache, int regnum, void *fsave)
       }
 #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
@@ -701,17 +690,6 @@ i387_collect_fxsave (const struct regcache *regcache, int regnum, void *fxsave)
 #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.  */
 
index 2a1c0b15226916e8e20b2e23af975b07248b93eb..e9b82dd5f603e05c0f829a9cf2796a1b1511b805 100644 (file)
@@ -90,13 +90,6 @@ extern void i387_supply_fsave (struct regcache *regcache, int regnum,
 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.  */
@@ -112,13 +105,6 @@ extern void i387_supply_fxsave (struct regcache *regcache, int regnum,
 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,