Commit | Line | Data |
---|---|---|
c906108c | 1 | /* Target-specific definition for a Hitachi Super-H. |
53116e27 | 2 | Copyright (C) 1993, 2000 Free Software Foundation, Inc. |
c906108c | 3 | |
c5aa993b | 4 | This file is part of GDB. |
c906108c | 5 | |
c5aa993b JM |
6 | This program is free software; you can redistribute it and/or modify |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 2 of the License, or | |
9 | (at your option) any later version. | |
c906108c | 10 | |
c5aa993b JM |
11 | This program is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
c906108c | 15 | |
c5aa993b JM |
16 | You should have received a copy of the GNU General Public License |
17 | along with this program; if not, write to the Free Software | |
18 | Foundation, Inc., 59 Temple Place - Suite 330, | |
19 | Boston, MA 02111-1307, USA. */ | |
c906108c SS |
20 | |
21 | /* Contributed by Steve Chamberlain sac@cygnus.com */ | |
22 | ||
cc17453a EZ |
23 | #define GDB_MULTI_ARCH 1 |
24 | ||
25 | /* Information that is dependent on the processor variant. */ | |
26 | struct gdbarch_tdep | |
27 | { | |
28 | int FPUL_REGNUM; /* sh3e, sh4 */ | |
29 | int FPSCR_REGNUM; /* sh3e, sh4 */ | |
30 | int DSR_REGNUM; /* sh-dsp, sh3-dsp */ | |
31 | int FP15_REGNUM; /* sh3e, sh4 */ | |
32 | int A0G_REGNUM; /* sh-dsp, sh3-dsp */ | |
33 | int A0_REGNUM; /* sh-dsp, sh3-dsp */ | |
34 | int A1G_REGNUM; /* sh-dsp, sh3-dsp */ | |
35 | int A1_REGNUM; /* sh-dsp, sh3-dsp */ | |
36 | int M0_REGNUM; /* sh-dsp, sh3-dsp */ | |
37 | int M1_REGNUM; /* sh-dsp, sh3-dsp */ | |
38 | int X0_REGNUM; /* sh-dsp, sh3-dsp */ | |
39 | int X1_REGNUM; /* sh-dsp, sh3-dsp */ | |
40 | int Y0_REGNUM; /* sh-dsp, sh3-dsp */ | |
41 | int Y1_REGNUM; /* sh-dsp, sh3-dsp */ | |
42 | int MOD_REGNUM; /* sh-dsp, sh3-dsp */ | |
43 | int SSR_REGNUM; /* sh3, sh3-dsp, sh3e, sh4 */ | |
44 | int SPC_REGNUM; /* sh3, sh3-dsp, sh3e, sh4 */ | |
45 | int RS_REGNUM; /* sh-dsp, sh3-dsp */ | |
46 | int RE_REGNUM; /* sh-dsp, sh3-dsp */ | |
fe9f384f EZ |
47 | int DR0_REGNUM; /* sh4 */ |
48 | int DR2_REGNUM; /* sh4 */ | |
49 | int DR4_REGNUM; /* sh4 */ | |
50 | int DR6_REGNUM; /* sh4 */ | |
51 | int DR8_REGNUM; /* sh4 */ | |
52 | int DR10_REGNUM; /* sh4 */ | |
53 | int DR12_REGNUM; /* sh4 */ | |
54 | int DR14_REGNUM; /* sh4 */ | |
55 | int FV0_REGNUM; /* sh4 */ | |
56 | int FV4_REGNUM; /* sh4 */ | |
57 | int FV8_REGNUM; /* sh4 */ | |
58 | int FV12_REGNUM; /* sh4 */ | |
cc17453a EZ |
59 | }; |
60 | ||
61 | /* Registers common to all the SH variants. */ | |
62 | enum | |
63 | { | |
64 | R0_REGNUM = 0, | |
65 | STRUCT_RETURN_REGNUM = 2, | |
66 | ARG0_REGNUM = 4, | |
67 | ARGLAST_REGNUM = 7, | |
68 | PR_REGNUM = 17, | |
69 | GBR_REGNUM = 18, | |
70 | VBR_REGNUM = 19, | |
71 | MACH_REGNUM = 20, | |
72 | MACL_REGNUM = 21, | |
73 | SR_REGNUM = 22 | |
74 | }; | |
75 | ||
53116e27 EZ |
76 | /* Define DO_REGISTERS_INFO() to do machine-specific formatting |
77 | of register dumps. */ | |
78 | extern void sh_do_registers_info (int regnum, int fpregs); | |
79 | #undef DO_REGISTERS_INFO | |
80 | #define DO_REGISTERS_INFO(REGNUM, FP) sh_do_registers_info(REGNUM, FP) | |
81 | ||
cc17453a EZ |
82 | #define NUM_REALREGS 59 /* used in remote-e7000.c which is not multiarched. */ |
83 | ||
84 | #define REGISTER_TYPE long /* used in standalone.c */ | |
85 | ||
86 | #define BIG_REMOTE_BREAKPOINT { 0xc3, 0x20 } /* Used in remote.c */ | |
87 | #define LITTLE_REMOTE_BREAKPOINT { 0x20, 0xc3 } /* Used in remote.c */ | |
88 | ||
89 | /*#define NOP {0x20, 0x0b}*/ /* Who uses this???*/ | |
c906108c | 90 |