Cleanup solib-svr4.c by moving legacy code out to its own file.
[deliverable/binutils-gdb.git] / gdb / config / sh / tm-sh.h
CommitLineData
c906108c 1/* Target-specific definition for a Hitachi Super-H.
b6ba6518
KB
2 Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
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/* Contributed by Steve Chamberlain sac@cygnus.com */
23
cc17453a
EZ
24#define GDB_MULTI_ARCH 1
25
26/* Information that is dependent on the processor variant. */
27struct gdbarch_tdep
28 {
29 int FPUL_REGNUM; /* sh3e, sh4 */
30 int FPSCR_REGNUM; /* sh3e, sh4 */
c62a7c7b 31 int SR_REGNUM; /* sh-dsp, sh3, sh3-dsp, sh3e, sh4 */
cc17453a 32 int DSR_REGNUM; /* sh-dsp, sh3-dsp */
e6c42fda 33 int FP_LAST_REGNUM; /* sh3e, sh4 */
cc17453a
EZ
34 int A0G_REGNUM; /* sh-dsp, sh3-dsp */
35 int A0_REGNUM; /* sh-dsp, sh3-dsp */
36 int A1G_REGNUM; /* sh-dsp, sh3-dsp */
37 int A1_REGNUM; /* sh-dsp, sh3-dsp */
38 int M0_REGNUM; /* sh-dsp, sh3-dsp */
39 int M1_REGNUM; /* sh-dsp, sh3-dsp */
40 int X0_REGNUM; /* sh-dsp, sh3-dsp */
41 int X1_REGNUM; /* sh-dsp, sh3-dsp */
42 int Y0_REGNUM; /* sh-dsp, sh3-dsp */
43 int Y1_REGNUM; /* sh-dsp, sh3-dsp */
44 int MOD_REGNUM; /* sh-dsp, sh3-dsp */
45 int SSR_REGNUM; /* sh3, sh3-dsp, sh3e, sh4 */
46 int SPC_REGNUM; /* sh3, sh3-dsp, sh3e, sh4 */
47 int RS_REGNUM; /* sh-dsp, sh3-dsp */
48 int RE_REGNUM; /* sh-dsp, sh3-dsp */
fe9f384f 49 int DR0_REGNUM; /* sh4 */
e6c42fda 50 int DR_LAST_REGNUM; /* sh4 */
fe9f384f 51 int FV0_REGNUM; /* sh4 */
e6c42fda 52 int FV_LAST_REGNUM; /* sh4 */
cc17453a
EZ
53 };
54
55/* Registers common to all the SH variants. */
56enum
57 {
58 R0_REGNUM = 0,
59 STRUCT_RETURN_REGNUM = 2,
60 ARG0_REGNUM = 4,
61 ARGLAST_REGNUM = 7,
62 PR_REGNUM = 17,
63 GBR_REGNUM = 18,
64 VBR_REGNUM = 19,
65 MACH_REGNUM = 20,
c6c1f191
EZ
66 MACL_REGNUM = 21,
67 SR_REGNUM = 22
cc17453a
EZ
68 };
69
70#define NUM_REALREGS 59 /* used in remote-e7000.c which is not multiarched. */
71
72#define REGISTER_TYPE long /* used in standalone.c */
73
74#define BIG_REMOTE_BREAKPOINT { 0xc3, 0x20 } /* Used in remote.c */
75#define LITTLE_REMOTE_BREAKPOINT { 0x20, 0xc3 } /* Used in remote.c */
76
77/*#define NOP {0x20, 0x0b}*/ /* Who uses this???*/
c906108c 78
This page took 0.081868 seconds and 4 git commands to generate.