1 |
578 |
markom |
/* Target-specific definition for a Hitachi Super-H.
|
2 |
|
|
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
|
3 |
|
|
Free Software Foundation, Inc.
|
4 |
|
|
|
5 |
|
|
This file is part of GDB.
|
6 |
|
|
|
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.
|
11 |
|
|
|
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.
|
16 |
|
|
|
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. */
|
21 |
|
|
|
22 |
|
|
/* Contributed by Steve Chamberlain sac@cygnus.com */
|
23 |
|
|
|
24 |
|
|
#define GDB_MULTI_ARCH 1
|
25 |
|
|
|
26 |
|
|
/* Information that is dependent on the processor variant. */
|
27 |
|
|
struct gdbarch_tdep
|
28 |
|
|
{
|
29 |
|
|
int FPUL_REGNUM; /* sh3e, sh4 */
|
30 |
|
|
int FPSCR_REGNUM; /* sh3e, sh4 */
|
31 |
|
|
int SR_REGNUM; /* sh-dsp, sh3, sh3-dsp, sh3e, sh4 */
|
32 |
|
|
int DSR_REGNUM; /* sh-dsp, sh3-dsp */
|
33 |
|
|
int FP_LAST_REGNUM; /* sh3e, sh4 */
|
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 */
|
49 |
|
|
int DR0_REGNUM; /* sh4 */
|
50 |
|
|
int DR_LAST_REGNUM; /* sh4 */
|
51 |
|
|
int FV0_REGNUM; /* sh4 */
|
52 |
|
|
int FV_LAST_REGNUM; /* sh4 */
|
53 |
|
|
};
|
54 |
|
|
|
55 |
|
|
/* Registers common to all the SH variants. */
|
56 |
|
|
enum
|
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,
|
66 |
|
|
MACL_REGNUM = 21,
|
67 |
|
|
SR_REGNUM = 22
|
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???*/
|
78 |
|
|
|