2011-01-08 Michael Snyder <msnyder@vmware.com>
[deliverable/binutils-gdb.git] / gdb / m32r-tdep.h
1 /* Target-dependent code for Renesas M32R, for GDB.
2
3 Copyright (C) 2004, 2007, 2008, 2009, 2010, 2011
4 Free Software Foundation, Inc.
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
10 the Free Software Foundation; either version 3 of the License, or
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
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20
21 #ifndef M32R_TDEP_H
22 #define M32R_TDEP_H
23
24 struct gdbarch_tdep
25 {
26 /* gdbarch target dependent data here. Currently unused for M32R. */
27 };
28
29 /* m32r register names. */
30
31 enum 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,
43 /* m32r calling convention. */
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.030368 seconds and 4 git commands to generate.