* c-exp.y (THIS): Delete token and grammar rule.
[deliverable/binutils-gdb.git] / gdb / config / mips / tm-irix3.h
CommitLineData
c906108c 1/* Target machine description for SGI Iris under Irix, for GDB.
b6ba6518
KB
2 Copyright 1990, 1991, 1992, 1993, 1995, 1999
3 Free Software Foundation, Inc.
c906108c 4
c5aa993b 5 This file is part of GDB.
c906108c 6
c5aa993b
JM
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
c906108c 11
c5aa993b
JM
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
c906108c 16
c5aa993b
JM
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
c906108c
SS
21
22#include "mips/tm-bigmips.h"
23
c906108c
SS
24/* Redefine register numbers for SGI. */
25
26#undef NUM_REGS
cce74817 27#undef MIPS_REGISTER_NAMES
c906108c
SS
28#undef FP0_REGNUM
29#undef PC_REGNUM
c906108c
SS
30#undef HI_REGNUM
31#undef LO_REGNUM
32#undef CAUSE_REGNUM
33#undef BADVADDR_REGNUM
34#undef FCRCS_REGNUM
35#undef FCRIR_REGNUM
36
37/* Number of machine registers */
38
39#define NUM_REGS 71
40
41/* Initializer for an array of names of registers.
42 There should be NUM_REGS strings in this initializer. */
43
cce74817 44#define MIPS_REGISTER_NAMES \
c906108c
SS
45 { "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3", \
46 "t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", \
47 "s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", \
48 "t8", "t9", "k0", "k1", "gp", "sp", "fp", "ra", \
49 "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", \
50 "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", \
51 "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23",\
52 "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31",\
53 "pc", "cause", "bad", "hi", "lo", "fsr", "fir" \
54 }
55
56/* Register numbers of various important registers.
57 Note that some of these values are "real" register numbers,
58 and correspond to the general registers of the machine,
59 and some are "phony" register numbers which are too large
60 to be actual register numbers as far as the user is concerned
61 but do serve to get the desired values when passed to read_register. */
62
63#define FP0_REGNUM 32 /* Floating point register 0 (single float) */
64#define PC_REGNUM 64 /* Contains program counter */
65#define CAUSE_REGNUM 65 /* describes last exception */
66#define BADVADDR_REGNUM 66 /* bad vaddr for addressing exception */
67#define HI_REGNUM 67 /* Multiple/divide temp */
68#define LO_REGNUM 68 /* ... */
69#define FCRCS_REGNUM 69 /* FP control/status */
70#define FCRIR_REGNUM 70 /* FP implementation/revision */
71
72/* Offsets for register values in _sigtramp frame.
73 sigcontext is immediately above the _sigtramp frame on Irix. */
c5aa993b 74#define SIGFRAME_BASE 0x0
c906108c
SS
75#define SIGFRAME_PC_OFF (SIGFRAME_BASE + 2 * 4)
76#define SIGFRAME_REGSAVE_OFF (SIGFRAME_BASE + 3 * 4)
77#define SIGFRAME_FPREGSAVE_OFF (SIGFRAME_BASE + 3 * 4 + 32 * 4 + 4)
This page took 0.186702 seconds and 4 git commands to generate.