* config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
[deliverable/binutils-gdb.git] / gdb / config / mips / tm-irix5.h
CommitLineData
a2f1e2e5 1/* Target machine description for SGI Iris under Irix 5, for GDB.
e3c05e17 2 Copyright 1990, 1991, 1992, 1993, 1995 Free Software Foundation, Inc.
a2f1e2e5
ILT
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
6c9638b4 18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
a2f1e2e5
ILT
19
20#include "mips/tm-irix3.h"
21
c08c3640
KH
22#define FORCE_LONG_LONG
23
a2f1e2e5
ILT
24/* When calling functions on Irix 5 (or any MIPS SVR4 ABI compliant
25 platform) $25 must hold the function address. Dest_Reg is a macro
26 used in CALL_DUMMY in tm-mips.h. */
27#undef Dest_Reg
28#define Dest_Reg 25
29
2e793470
PS
30/* The signal handler trampoline is called _sigtramp. */
31#undef IN_SIGTRAMP
32#define IN_SIGTRAMP(pc, name) ((name) && STREQ ("_sigtramp", name))
33
a2f1e2e5
ILT
34/* Irix 5 saves a full 64 bits for each register. We skip 2 * 4 to
35 get to the saved PC (the register mask and status register are both
36 32 bits) and then another 4 to get to the lower 32 bits. We skip
37 the same 4 bytes, plus the 8 bytes for the PC to get to the
38 registers, and add another 4 to get to the lower 32 bits. We skip
39 8 bytes per register. */
40#undef SIGFRAME_PC_OFF
41#define SIGFRAME_PC_OFF (SIGFRAME_BASE + 2 * 4 + 4)
42#undef SIGFRAME_REGSAVE_OFF
43#define SIGFRAME_REGSAVE_OFF (SIGFRAME_BASE + 2 * 4 + 8 + 4)
e3c05e17
PS
44#undef SIGFRAME_FPREGSAVE_OFF
45#define SIGFRAME_FPREGSAVE_OFF (SIGFRAME_BASE + 2 * 4 + 8 + 32 * 8 + 4)
a2f1e2e5 46#define SIGFRAME_REG_SIZE 8
188c635f
SG
47
48/* start-sanitize-gm */
49#ifdef GENERAL_MAGIC
50#include "tm-magic.h"
51#endif /* GENERAL_MAGIC */
52/* end-sanitize-gm */
This page took 0.110235 seconds and 4 git commands to generate.