This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] More MIPS purging


FYI,
	Andrew
Thu Jun  8 14:23:12 2000  Andrew Cagney  <cagney@b1.cygnus.com>

	* config/mips/tm-vr4xxxel.h, config/mips/tm-vr4xxx.h,
 	config/mips/tm-vr4100.h, config/mips/tm-tx39l.h,
 	config/mips/tm-tx39.h: Delete definition of
 	MIPS_DEFAULT_FPU. Enable multi-arch.
	* mips-tdep.c: (mips_gdbarch_init): The bfd_mach_mips3900 has no
 	FPU.
	
	* config/mips/tm-mips.h (MIPS_FPU_SINGLE_REGSIZE): 
	(MIPS_FPU_DOUBLE_REGSIZE): Move from here.
	* mips-tdep.c: To here.  Change to an enum.

Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.12
diff -p -r1.12 mips-tdep.c
*** mips-tdep.c	2000/06/08 00:52:56	1.12
--- mips-tdep.c	2000/06/08 04:35:00
***************
*** 40,45 ****
--- 40,53 ----
  #include "elf-bfd.h"
  
  
+ /* The sizes of floating point registers.  */
+ 
+ enum
+ {
+   MIPS_FPU_SINGLE_REGSIZE = 4,
+   MIPS_FPU_DOUBLE_REGSIZE = 8
+ };
+ 
  /* All the possible MIPS ABIs. */
  
  enum mips_abi
*************** mips_gdbarch_init (info, arches)
*** 4030,4035 ****
--- 4038,4044 ----
  	   && info.bfd_arch_info->arch == bfd_arch_mips)
      switch (info.bfd_arch_info->mach)
        {
+       case bfd_mach_mips3900:
        case bfd_mach_mips4100:
        case bfd_mach_mips4111:
  	tdep->mips_fpu_type = MIPS_FPU_NONE;
Index: config/mips/tm-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-mips.h,v
retrieving revision 1.10
diff -p -r1.10 tm-mips.h
*** tm-mips.h	2000/06/08 04:00:56	1.10
--- tm-mips.h	2000/06/08 04:35:06
*************** extern breakpoint_from_pc_fn mips_breakp
*** 129,139 ****
  #define MIPS_REGSIZE 4
  #endif
  
- /* The sizes of floating point registers.  */
- 
- #define MIPS_FPU_SINGLE_REGSIZE 4
- #define MIPS_FPU_DOUBLE_REGSIZE 8
- 
  /* Number of machine registers */
  
  #ifndef NUM_REGS
--- 129,134 ----
Index: config/mips/tm-tx39.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-tx39.h,v
retrieving revision 1.2
diff -p -r1.2 tm-tx39.h
*** tm-tx39.h	2000/06/06 07:00:45	1.2
--- tm-tx39.h	2000/06/08 04:35:06
***************
*** 17,24 ****
     Foundation, Inc., 59 Temple Place - Suite 330,
     Boston, MA 02111-1307, USA.  */
  
  #define MIPS_EABI 1
- #define MIPS_DEFAULT_FPU_TYPE MIPS_FPU_NONE
  
  #include "mips/tm-bigmips.h"
  
--- 17,24 ----
     Foundation, Inc., 59 Temple Place - Suite 330,
     Boston, MA 02111-1307, USA.  */
  
+ #define GDB_MULTI_ARCH 1
  #define MIPS_EABI 1
  
  #include "mips/tm-bigmips.h"
  
Index: config/mips/tm-tx39l.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-tx39l.h,v
retrieving revision 1.2
diff -p -r1.2 tm-tx39l.h
*** tm-tx39l.h	2000/06/06 07:00:45	1.2
--- tm-tx39l.h	2000/06/08 04:35:06
***************
*** 17,24 ****
     Foundation, Inc., 59 Temple Place - Suite 330,
     Boston, MA 02111-1307, USA.  */
  
  #define MIPS_EABI 1
- #define MIPS_DEFAULT_FPU_TYPE MIPS_FPU_NONE
  
  #include "mips/tm-mips.h"
  
--- 17,24 ----
     Foundation, Inc., 59 Temple Place - Suite 330,
     Boston, MA 02111-1307, USA.  */
  
+ #define GDB_MULTI_ARCH 1
  #define MIPS_EABI 1
  
  #include "mips/tm-mips.h"
  
Index: config/mips/tm-vr4100.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-vr4100.h,v
retrieving revision 1.3
diff -p -r1.3 tm-vr4100.h
*** tm-vr4100.h	2000/06/06 07:00:45	1.3
--- tm-vr4100.h	2000/06/08 04:35:06
***************
*** 18,24 ****
     Boston, MA 02111-1307, USA.  */
  
  #define MIPS_EABI 1
- #define MIPS_DEFAULT_FPU_TYPE MIPS_FPU_NONE
  #define TARGET_PTR_BIT 64
  
  #include "mips/tm-bigmips64.h"
--- 18,23 ----
Index: config/mips/tm-vr4xxx.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-vr4xxx.h,v
retrieving revision 1.3
diff -p -r1.3 tm-vr4xxx.h
*** tm-vr4xxx.h	2000/06/06 07:00:45	1.3
--- tm-vr4xxx.h	2000/06/08 04:35:06
***************
*** 18,23 ****
     Boston, MA 02111-1307, USA.  */
  
  #define GDB_MULTI_ARCH 1
- #define MIPS_DEFAULT_FPU_TYPE MIPS_FPU_DOUBLE
  
  #include "mips/tm-bigmips64.h"
--- 18,22 ----
Index: config/mips/tm-vr4xxxel.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-vr4xxxel.h,v
retrieving revision 1.3
diff -p -r1.3 tm-vr4xxxel.h
*** tm-vr4xxxel.h	2000/06/06 07:00:45	1.3
--- tm-vr4xxxel.h	2000/06/08 04:35:06
***************
*** 18,23 ****
     Boston, MA 02111-1307, USA.  */
  
  #define GDB_MULTI_ARCH 1
- #define MIPS_DEFAULT_FPU_TYPE MIPS_FPU_DOUBLE
  
  #include "mips/tm-mips64.h"
--- 18,22 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]