aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/mips
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-08 02:53:04 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-08 02:53:04 +0000
commitd929b26ff10049094a5f5efe875af853f845b494 (patch)
treea269ef908e707b8d645352cd35f7a0d4932f4431 /gdb/config/mips
parent327fce13c57a6a7f319fe389c08ae8a3b438f4b0 (diff)
downloadgdb-d929b26ff10049094a5f5efe875af853f845b494.zip
gdb-d929b26ff10049094a5f5efe875af853f845b494.tar.gz
gdb-d929b26ff10049094a5f5efe875af853f845b494.tar.bz2
Move some of the MIPS n32 ABI configuration options into the mips
multi-arch vector.
Diffstat (limited to 'gdb/config/mips')
-rw-r--r--gdb/config/mips/tm-irix5.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/gdb/config/mips/tm-irix5.h b/gdb/config/mips/tm-irix5.h
index aac3136..0fd7a86 100644
--- a/gdb/config/mips/tm-irix5.h
+++ b/gdb/config/mips/tm-irix5.h
@@ -1,5 +1,5 @@
/* Target machine description for SGI Iris under Irix 5, for GDB.
- Copyright 1990, 1991, 1992, 1993, 1995 Free Software Foundation, Inc.
+ Copyright 1990-1993, 1995, 2000 Free Software Foundation, Inc.
This file is part of GDB.
@@ -20,6 +20,10 @@
#include "mips/tm-irix3.h"
+/* FIXME: cagney/2000-04-04: Testing the _MIPS_SIM_NABI32 and
+ _MIPS_SIM in a tm-*.h file is simply wrong! Those are
+ host-dependant macros (provided by /usr/include) and stop any
+ chance of the target being cross compiled */
#if defined (_MIPS_SIM_NABI32) && _MIPS_SIM == _MIPS_SIM_NABI32
/*
* Irix 6 (n32 ABI) has 32-bit GP regs and 64-bit FP regs
@@ -46,6 +50,15 @@
#undef MIPS_LAST_ARG_REGNUM
#define MIPS_LAST_ARG_REGNUM 11 /* N32 uses R4 through R11 for args */
+/* MIPS_STACK_ARGSIZE -- how many bytes does a pushed function arg take
+ up on the stack? For the n32 ABI, eight bytes are reserved for each
+ register. Like MIPS_SAVED_REGSIZE but different. */
+#define MIPS_DEFAULT_STACK_ARGSIZE 8
+
+/* N32 does not reserve home space for registers used to carry
+ parameters. */
+#define MIPS_REGS_HAVE_HOME_P 0
+
#endif /* N32 */