2005-04-28 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / s390-tdep.h
1 /* Target-dependent code for GDB, the GNU debugger.
2 Copyright 2003 Free Software Foundation, Inc.
3
4 This file is part of GDB.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA. */
20
21 #ifndef S390_TDEP_H
22 #define S390_TDEP_H
23
24 /* Register information. */
25
26 /* Program Status Word. */
27 #define S390_PSWM_REGNUM 0
28 #define S390_PSWA_REGNUM 1
29 /* General Purpose Registers. */
30 #define S390_R0_REGNUM 2
31 #define S390_R1_REGNUM 3
32 #define S390_R2_REGNUM 4
33 #define S390_R3_REGNUM 5
34 #define S390_R4_REGNUM 6
35 #define S390_R5_REGNUM 7
36 #define S390_R6_REGNUM 8
37 #define S390_R7_REGNUM 9
38 #define S390_R8_REGNUM 10
39 #define S390_R9_REGNUM 11
40 #define S390_R10_REGNUM 12
41 #define S390_R11_REGNUM 13
42 #define S390_R12_REGNUM 14
43 #define S390_R13_REGNUM 15
44 #define S390_R14_REGNUM 16
45 #define S390_R15_REGNUM 17
46 /* Access Registers. */
47 #define S390_A0_REGNUM 18
48 #define S390_A1_REGNUM 19
49 #define S390_A2_REGNUM 20
50 #define S390_A3_REGNUM 21
51 #define S390_A4_REGNUM 22
52 #define S390_A5_REGNUM 23
53 #define S390_A6_REGNUM 24
54 #define S390_A7_REGNUM 25
55 #define S390_A8_REGNUM 26
56 #define S390_A9_REGNUM 27
57 #define S390_A10_REGNUM 28
58 #define S390_A11_REGNUM 29
59 #define S390_A12_REGNUM 30
60 #define S390_A13_REGNUM 31
61 #define S390_A14_REGNUM 32
62 #define S390_A15_REGNUM 33
63 /* Floating Point Control Word. */
64 #define S390_FPC_REGNUM 34
65 /* Floating Point Registers. */
66 #define S390_F0_REGNUM 35
67 #define S390_F1_REGNUM 36
68 #define S390_F2_REGNUM 37
69 #define S390_F3_REGNUM 38
70 #define S390_F4_REGNUM 39
71 #define S390_F5_REGNUM 40
72 #define S390_F6_REGNUM 41
73 #define S390_F7_REGNUM 42
74 #define S390_F8_REGNUM 43
75 #define S390_F9_REGNUM 44
76 #define S390_F10_REGNUM 45
77 #define S390_F11_REGNUM 46
78 #define S390_F12_REGNUM 47
79 #define S390_F13_REGNUM 48
80 #define S390_F14_REGNUM 49
81 #define S390_F15_REGNUM 50
82 /* Total. */
83 #define S390_NUM_REGS 51
84
85 /* Pseudo registers -- PC and condition code. */
86 #define S390_PC_REGNUM S390_NUM_REGS
87 #define S390_CC_REGNUM (S390_NUM_REGS+1)
88 #define S390_NUM_PSEUDO_REGS 2
89 #define S390_NUM_TOTAL_REGS (S390_NUM_REGS+2)
90
91 /* Special register usage. */
92 #define S390_SP_REGNUM S390_R15_REGNUM
93 #define S390_RETADDR_REGNUM S390_R14_REGNUM
94 #define S390_FRAME_REGNUM S390_R11_REGNUM
95
96 /* Core file register sets, defined in s390-tdep.c. */
97 #define s390_sizeof_gregset 0x90
98 extern int s390_regmap_gregset[S390_NUM_REGS];
99 #define s390x_sizeof_gregset 0xd8
100 extern int s390x_regmap_gregset[S390_NUM_REGS];
101 #define s390_sizeof_fpregset 0x88
102 extern int s390_regmap_fpregset[S390_NUM_REGS];
103
104 #endif
105
This page took 0.031907 seconds and 4 git commands to generate.