Commit | Line | Data |
---|---|---|
91021223 MF |
1 | /* Target-dependent code for Analog Devices Blackfin processor, for GDB. |
2 | ||
7b6bb8da | 3 | Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
91021223 MF |
4 | Free Software Foundation, Inc. |
5 | ||
6 | Contributed by Analog Devices, Inc. | |
7 | ||
8 | This file is part of GDB. | |
9 | ||
10 | This program is free software; you can redistribute it and/or modify | |
11 | it under the terms of the GNU General Public License as published by | |
12 | the Free Software Foundation; either version 3 of the License, or | |
13 | (at your option) any later version. | |
14 | ||
15 | This program is distributed in the hope that it will be useful, | |
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | GNU General Public License for more details. | |
19 | ||
20 | You should have received a copy of the GNU General Public License | |
21 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
22 | ||
23 | enum gdb_regnum { | |
24 | /* Core Registers */ | |
25 | BFIN_R0_REGNUM = 0, | |
26 | BFIN_R1_REGNUM, | |
27 | BFIN_R2_REGNUM, | |
28 | BFIN_R3_REGNUM, | |
29 | BFIN_R4_REGNUM, | |
30 | BFIN_R5_REGNUM, | |
31 | BFIN_R6_REGNUM, | |
32 | BFIN_R7_REGNUM, | |
33 | BFIN_P0_REGNUM, | |
34 | BFIN_P1_REGNUM, | |
35 | BFIN_P2_REGNUM, | |
36 | BFIN_P3_REGNUM, | |
37 | BFIN_P4_REGNUM, | |
38 | BFIN_P5_REGNUM, | |
39 | BFIN_SP_REGNUM, | |
40 | BFIN_FP_REGNUM, | |
41 | BFIN_I0_REGNUM, | |
42 | BFIN_I1_REGNUM, | |
43 | BFIN_I2_REGNUM, | |
44 | BFIN_I3_REGNUM, | |
45 | BFIN_M0_REGNUM, | |
46 | BFIN_M1_REGNUM, | |
47 | BFIN_M2_REGNUM, | |
48 | BFIN_M3_REGNUM, | |
49 | BFIN_B0_REGNUM, | |
50 | BFIN_B1_REGNUM, | |
51 | BFIN_B2_REGNUM, | |
52 | BFIN_B3_REGNUM, | |
53 | BFIN_L0_REGNUM, | |
54 | BFIN_L1_REGNUM, | |
55 | BFIN_L2_REGNUM, | |
56 | BFIN_L3_REGNUM, | |
57 | BFIN_A0_DOT_X_REGNUM, | |
1642781b | 58 | BFIN_A0_DOT_W_REGNUM, |
91021223 MF |
59 | BFIN_A1_DOT_X_REGNUM, |
60 | BFIN_A1_DOT_W_REGNUM, | |
61 | BFIN_ASTAT_REGNUM, | |
62 | BFIN_RETS_REGNUM, | |
63 | BFIN_LC0_REGNUM, | |
64 | BFIN_LT0_REGNUM, | |
65 | BFIN_LB0_REGNUM, | |
66 | BFIN_LC1_REGNUM, | |
67 | BFIN_LT1_REGNUM, | |
68 | BFIN_LB1_REGNUM, | |
69 | BFIN_CYCLES_REGNUM, | |
70 | BFIN_CYCLES2_REGNUM, | |
71 | BFIN_USP_REGNUM, | |
72 | BFIN_SEQSTAT_REGNUM, | |
73 | BFIN_SYSCFG_REGNUM, | |
74 | BFIN_RETI_REGNUM, | |
75 | BFIN_RETX_REGNUM, | |
76 | BFIN_RETN_REGNUM, | |
77 | BFIN_RETE_REGNUM, | |
78 | ||
79 | /* Pseudo Registers managed remotely. */ | |
80 | BFIN_PC_REGNUM, | |
81 | ||
82 | /* Pseudo Registers managed locally. */ | |
83 | BFIN_CC_REGNUM | |
84 | }; | |
85 | #define BFIN_NUM_REGS (BFIN_PC_REGNUM + 1) | |
86 | #define BFIN_NUM_PSEUDO_REGS (1) | |
87 | ||
88 | /* The ABIs for Blackfin. */ | |
89 | enum bfin_abi | |
90 | { | |
91 | BFIN_ABI_FLAT | |
92 | }; | |
93 | ||
94 | /* Target-dependent structure in gdbarch. */ | |
95 | struct gdbarch_tdep | |
96 | { | |
97 | /* Which ABI is in use? */ | |
98 | enum bfin_abi bfin_abi; | |
99 | }; | |
100 | ||
101 | /* Return the Blackfin ABI associated with GDBARCH. */ | |
102 | extern enum bfin_abi bfin_abi (struct gdbarch *gdbarch); |