gdb
[deliverable/binutils-gdb.git] / gdb / m32r-tdep.h
CommitLineData
9b32d526
KI
1/* Target-dependent code for Renesas M32R, for GDB.
2
7b6bb8da
JB
3 Copyright (C) 2004, 2007, 2008, 2009, 2010, 2011
4 Free Software Foundation, Inc.
9b32d526
KI
5
6 This file is part of GDB.
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
a9762ec7 10 the Free Software Foundation; either version 3 of the License, or
9b32d526
KI
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
a9762ec7 19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
9b32d526
KI
20
21#ifndef M32R_TDEP_H
22#define M32R_TDEP_H
23
24struct gdbarch_tdep
25{
025bb325 26 /* gdbarch target dependent data here. Currently unused for M32R. */
9b32d526
KI
27};
28
025bb325 29/* m32r register names. */
9b32d526
KI
30
31enum m32r_regnum
32{
33 R0_REGNUM = 0,
34 R3_REGNUM = 3,
35 M32R_FP_REGNUM = 13,
36 LR_REGNUM = 14,
37 M32R_SP_REGNUM = 15,
38 PSW_REGNUM = 16,
39 CBR_REGNUM = 17,
40 SPU_REGNUM = 18,
41 SPI_REGNUM = 19,
42 M32R_PC_REGNUM = 21,
025bb325 43 /* m32r calling convention. */
9b32d526
KI
44 ARG1_REGNUM = R0_REGNUM,
45 ARGN_REGNUM = R3_REGNUM,
46 RET1_REGNUM = R0_REGNUM,
47};
48
49#define M32R_NUM_REGS 25
50
51#endif /* m32r-tdep.h */
This page took 0.488771 seconds and 4 git commands to generate.