1 /* This file defines the interface between the sh simulator and gdb.
2 Copyright (C) 2000, 2002, 2004, 2007 Free Software Foundation, Inc.
4 This file is part of GDB.
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.
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.
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, Boston, MA 02111-1307, USA. */
20 #if !defined (SIM_SH_H)
27 /* The simulator makes use of the following register information. */
56 SIM_SH_FR0_REGNUM
, /* FRn registers: sh3e / sh4 */
72 SIM_SH_SSR_REGNUM
, /* sh3{,e,-dsp}, sh4 */
73 SIM_SH_SPC_REGNUM
, /* sh3{,e,-dsp}, sh4 */
74 SIM_SH_R0_BANK0_REGNUM
, /* SIM_SH_Rn_BANKm_REGNUM: sh3[e] / sh4 */
75 SIM_SH_R1_BANK0_REGNUM
,
76 SIM_SH_R2_BANK0_REGNUM
,
77 SIM_SH_R3_BANK0_REGNUM
,
78 SIM_SH_R4_BANK0_REGNUM
,
79 SIM_SH_R5_BANK0_REGNUM
,
80 SIM_SH_R6_BANK0_REGNUM
,
81 SIM_SH_R7_BANK0_REGNUM
,
82 SIM_SH_R0_BANK1_REGNUM
,
83 SIM_SH_R1_BANK1_REGNUM
,
84 SIM_SH_R2_BANK1_REGNUM
,
85 SIM_SH_R3_BANK1_REGNUM
,
86 SIM_SH_R4_BANK1_REGNUM
,
87 SIM_SH_R5_BANK1_REGNUM
,
88 SIM_SH_R6_BANK1_REGNUM
,
89 SIM_SH_R7_BANK1_REGNUM
,
108 SIM_SH4_NUM_REGS
, /* 77 */
125 SIM_SH_R0_BANK_REGNUM
,
126 SIM_SH_R1_BANK_REGNUM
,
127 SIM_SH_R2_BANK_REGNUM
,
128 SIM_SH_R3_BANK_REGNUM
,
129 SIM_SH_R4_BANK_REGNUM
,
130 SIM_SH_R5_BANK_REGNUM
,
131 SIM_SH_R6_BANK_REGNUM
,
132 SIM_SH_R7_BANK_REGNUM
,
133 /* 109..127: room for expansion. */
138 SIM_SH_BANK_MACL_REGNUM
,
139 SIM_SH_BANK_GBR_REGNUM
,
140 SIM_SH_BANK_PR_REGNUM
,
141 SIM_SH_BANK_IVN_REGNUM
,
142 SIM_SH_BANK_MACH_REGNUM
147 SIM_SH64_R0_REGNUM
= 0,
148 SIM_SH64_SP_REGNUM
= 15,
149 SIM_SH64_PC_REGNUM
= 64,
150 SIM_SH64_SR_REGNUM
= 65,
151 SIM_SH64_SSR_REGNUM
= 66,
152 SIM_SH64_SPC_REGNUM
= 67,
153 SIM_SH64_TR0_REGNUM
= 68,
154 SIM_SH64_FPCSR_REGNUM
= 76,
155 SIM_SH64_FR0_REGNUM
= 77
160 SIM_SH64_NR_REGS
= 141, /* total number of architectural registers */
161 SIM_SH64_NR_R_REGS
= 64, /* number of general registers */
162 SIM_SH64_NR_TR_REGS
= 8, /* number of target registers */
163 SIM_SH64_NR_FP_REGS
= 64 /* number of floating point registers */