daily update
[deliverable/binutils-gdb.git] / include / gdb / sim-sh.h
CommitLineData
6093d3a5
EZ
1/* This file defines the interface between the sh simulator and gdb.
2 Copyright (C) 2002 Free Software Foundation, Inc.
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20#if !defined (SIM_SH_H)
21#define SIM_SH_H
22
23#ifdef __cplusplus
24extern "C" { // }
25#endif
26
27/* The simulator makes use of the following register information. */
28
29enum
30 {
31 SIM_SH64_R0_REGNUM = 0,
32 SIM_SH64_SP_REGNUM = 15,
33 SIM_SH64_PC_REGNUM = 64,
34 SIM_SH64_SR_REGNUM = 65,
35 SIM_SH64_SSR_REGNUM = 66,
36 SIM_SH64_SPC_REGNUM = 67,
37 SIM_SH64_TR0_REGNUM = 68,
38 SIM_SH64_FPCSR_REGNUM = 76,
39 SIM_SH64_FR0_REGNUM = 77
40 };
41
42enum
43 {
44 SIM_SH64_NR_REGS = 141, /* total number of architectural registers */
45 SIM_SH64_NR_R_REGS = 64, /* number of general registers */
46 SIM_SH64_NR_TR_REGS = 8, /* number of target registers */
47 SIM_SH64_NR_FP_REGS = 64 /* number of floating point registers */
48 };
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif
This page took 0.042582 seconds and 4 git commands to generate.