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