* mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
[deliverable/binutils-gdb.git] / gdb / config / mn10300 / tm-mn10300.h
1 /* Parameters for execution on a Matsushita mn10300 processor.
2 Copyright 1996, 1997, 1998, 1999, 2000, 2001
3 Free Software Foundation, Inc.
4
5 Contributed by Geoffrey Noer <noer@cygnus.com>
6
7 This file is part of GDB.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA. */
23
24 #define GDB_MULTI_ARCH 1
25
26 /* The mn10300 is little endian. */
27 #define TARGET_BYTE_ORDER_DEFAULT LITTLE_ENDIAN
28
29 /* All registers are 32bits (phew!). */
30 #if !GDB_MULTI_ARCH
31 #define REGISTER_SIZE 4
32 #define MAX_REGISTER_RAW_SIZE 4
33 #define NUM_REGS 32
34 #endif
35
36 #if !GDB_MULTI_ARCH
37 #define REGISTER_VIRTUAL_TYPE(REG) builtin_type_int
38 #endif
39
40 #if !GDB_MULTI_ARCH
41 #define REGISTER_BYTE(REG) ((REG) * 4)
42 #define REGISTER_VIRTUAL_SIZE(REG) 4
43 #define REGISTER_RAW_SIZE(REG) 4
44 #endif
45
46 #define D2_REGNUM 2
47 #define D3_REGNUM 3
48 #define A2_REGNUM 6
49 #define A3_REGNUM 7
50 #define SP_REGNUM 8
51 #define PC_REGNUM 9
52 #define MDR_REGNUM 10
53 #define PSW_REGNUM 11
54 #define LIR_REGNUM 12
55 #define LAR_REGNUM 13
56 #define E0_REGNUM 15
57
58 #define INIT_FRAME_PC /* Not necessary */
59
60 /* Cons up virtual frame pointer for trace */
61 extern void mn10300_virtual_frame_pointer (CORE_ADDR, long *, long *);
62 #define TARGET_VIRTUAL_FRAME_POINTER(PC, REGP, OFFP) \
63 mn10300_virtual_frame_pointer ((PC), (REGP), (OFFP))
This page took 0.033313 seconds and 5 git commands to generate.