]>
Commit | Line | Data |
---|---|---|
85a453d5 | 1 | /* Target-specific definition for a Renesas Super-H. |
6aba47ca DJ |
2 | Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
3 | 2003, 2007 Free Software Foundation, Inc. | |
ab3b8126 JT |
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 | |
197e01b6 EZ |
19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 | Boston, MA 02110-1301, USA. */ | |
ab3b8126 JT |
21 | |
22 | #ifndef SH_TDEP_H | |
23 | #define SH_TDEP_H | |
24 | ||
25 | /* Contributed by Steve Chamberlain sac@cygnus.com */ | |
26 | ||
f2ea0907 | 27 | /* Registers for all SH variants. Used also by sh3-rom.c. */ |
ab3b8126 JT |
28 | enum |
29 | { | |
30 | R0_REGNUM = 0, | |
31 | STRUCT_RETURN_REGNUM = 2, | |
55ff77ac CV |
32 | ARG0_REGNUM = 4, |
33 | ARGLAST_REGNUM = 7, | |
f2ea0907 | 34 | FP_REGNUM = 14, |
55ff77ac | 35 | PR_REGNUM = 17, |
ab3b8126 JT |
36 | GBR_REGNUM = 18, |
37 | VBR_REGNUM = 19, | |
38 | MACH_REGNUM = 20, | |
39 | MACL_REGNUM = 21, | |
55ff77ac | 40 | SR_REGNUM = 22, |
f2ea0907 CV |
41 | FPUL_REGNUM = 23, |
42 | /* Floating point registers */ | |
43 | FPSCR_REGNUM = 24, | |
357d3800 | 44 | FR0_REGNUM = 25, |
55ff77ac | 45 | FLOAT_ARG0_REGNUM = 29, |
f2ea0907 CV |
46 | FLOAT_ARGLAST_REGNUM = 36, |
47 | FP_LAST_REGNUM = 40, | |
48 | /* sh3,sh4 registers */ | |
49 | SSR_REGNUM = 41, | |
50 | SPC_REGNUM = 42, | |
51 | /* DSP registers */ | |
52 | DSR_REGNUM = 24, | |
53 | A0G_REGNUM = 25, | |
54 | A0_REGNUM = 26, | |
55 | A1G_REGNUM = 27, | |
56 | A1_REGNUM = 28, | |
57 | M0_REGNUM = 29, | |
58 | M1_REGNUM = 30, | |
59 | X0_REGNUM = 31, | |
60 | X1_REGNUM = 32, | |
61 | Y0_REGNUM = 33, | |
62 | Y1_REGNUM = 34, | |
63 | MOD_REGNUM = 40, | |
64 | RS_REGNUM = 43, | |
65 | RE_REGNUM = 44, | |
76cd2bd9 CV |
66 | DSP_R0_BANK_REGNUM = 51, |
67 | DSP_R7_BANK_REGNUM = 58, | |
da962468 CV |
68 | /* sh2a register */ |
69 | R0_BANK0_REGNUM = 43, | |
70 | MACHB_REGNUM = 58, | |
71 | IVNB_REGNUM = 59, | |
72 | PRB_REGNUM = 60, | |
73 | GBRB_REGNUM = 61, | |
74 | MACLB_REGNUM = 62, | |
75 | BANK_REGNUM = 63, | |
76 | IBCR_REGNUM = 64, | |
77 | IBNR_REGNUM = 65, | |
78 | TBR_REGNUM = 66, | |
79 | PSEUDO_BANK_REGNUM = 67, | |
f2ea0907 | 80 | /* Floating point pseudo registers */ |
da962468 CV |
81 | DR0_REGNUM = 68, |
82 | DR_LAST_REGNUM = 75, | |
83 | FV0_REGNUM = 76, | |
84 | FV_LAST_REGNUM = 79 | |
ab3b8126 JT |
85 | }; |
86 | ||
55ff77ac CV |
87 | extern gdbarch_init_ftype sh64_gdbarch_init; |
88 | extern void sh64_show_regs (void); | |
89 | ||
ab3b8126 | 90 | #endif /* SH_TDEP_H */ |