122e886dd93934df425d226353fc4b9efc8c7b86
[deliverable/binutils-gdb.git] / gdb / score-tdep.h
1 /* Target-dependent code for the S+core architecture, for GDB,
2 the GNU Debugger.
3
4 Copyright (C) 2006
5 Free Software Foundation, Inc.
6
7 Contributed by Qinwei (qinwei@sunnorth.com.cn)
8 Contributed by Ching-Peng Lin (cplin@sunplus.com)
9
10 This file is part of GDB.
11
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
16
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 51 Franklin Street, Fifth Floor,
25 Boston, MA 02110-1301, USA. */
26
27 #ifndef SCORE_TDEP_H
28 #define SCORE_TDEP_H
29 #include "math.h"
30
31 enum gdb_regnum
32 {
33 SCORE_SP_REGNUM = 0,
34 SCORE_FP_REGNUM = 2,
35 SCORE_RA_REGNUM = 3,
36 SCORE_A0_REGNUM = 4,
37 SCORE_AL_REGNUM = 7,
38 SCORE_PC_REGNUM = 49,
39 };
40
41 #define SCORE_A0_REGNUM 4
42 #define SCORE_A1_REGNUM 5
43 #define SCORE_REGSIZE 4
44 #define SCORE_NUM_REGS 56
45 #define SCORE_BEGIN_ARG_REGNUM 4
46 #define SCORE_LAST_ARG_REGNUM 7
47
48 #define SCORE_INSTLEN 4
49 #define SCORE16_INSTLEN 2
50
51 #endif /* SCORE_TDEP_H */
This page took 0.031635 seconds and 4 git commands to generate.