Add several new files for stratus (i860* and *-stratus.h). Also add
[deliverable/binutils-gdb.git] / gdb / i860-opcode.h
CommitLineData
be9a2362
FF
1/* Intel I860 opcde list for GDB, the GNU debugger.
2 Copyright (C) 1992 Free Software Foundation, Inc.
3 Contributed by Peggy Fieland (pfieland@stratus.com)
4
5GDB is distributed in the hope that it will be useful, but WITHOUT ANY
6WARRANTY. No author or distributor accepts responsibility to anyone
7for the consequences of using it or for whether it serves any
8particular purpose or works at all, unless he says so in writing.
9Refer to the GDB General Public License for full details.
10
11Everyone is granted permission to copy, modify and redistribute GDB,
12but only under the conditions described in the GDB General Public
13License. A copy of this license is supposed to have been given to you
14along with GDB so you can know your rights and responsibilities. It
15should be in a file named COPYING. Among other things, the copyright
16notice and this notice must be preserved on all copies.
17
18In other words, go ahead and share GDB, but don't try to stop
19anyone else from sharing it farther. Help stamp out software hoarding!
20*/
21
22#ifdef BIG_ENDIAN
23struct gen_fmt
24{
25 unsigned op1 : 6;
26 unsigned src2 : 5;
27 unsigned dest : 5;
28 unsigned src1 : 5;
29 unsigned offset : 11;
30};
31
32struct geni_fmt
33{
34 unsigned op1 : 6;
35 unsigned src2 : 5;
36 unsigned dest : 5;
37 unsigned offset : 16;
38};
39
40struct esc_fmt
41{
42 unsigned op1 : 6;
43 unsigned res1 : 10;
44 unsigned src1 : 5;
45 unsigned res2 : 6;
46 unsigned op2 : 5;
47};
48struct ctrl_fmt
49{
50 unsigned op1 : 6;
51 unsigned int offset : 26;
52};
53
54struct fp_fmt
55{
56 unsigned op1 : 6;
57 unsigned src2 : 5;
58 unsigned dest : 5;
59 unsigned src1 : 5;
60 unsigned p : 1;
61 unsigned d : 1;
62 unsigned s : 1;
63 unsigned r : 1;
64 unsigned op2 : 7;
65};
66
67union insn_fmt
68{
69 struct gen_fmt gen;
70 struct geni_fmt geni;
71 struct esc_fmt esc;
72 struct ctrl_fmt ctrl;
73 struct fp_fmt fp;
74 long int_val;
75};
76#else
77struct gen_fmt
78{
79 unsigned offset : 11;
80 unsigned src1 : 5;
81 unsigned dest : 5;
82 unsigned src2 : 5;
83 unsigned op1 : 6;
84};
85
86struct geni_fmt
87{
88 unsigned offset : 16;
89 unsigned dest : 5;
90 unsigned src2 : 5;
91 unsigned op1 : 6;
92};
93
94struct esc_fmt
95{
96 unsigned op2 : 5;
97 unsigned res2 : 6;
98 unsigned src1 : 5;
99 unsigned res1 : 10;
100 unsigned op1 : 6;
101};
102struct ctrl_fmt
103{
104 unsigned int offset : 26;
105 unsigned op1 : 6;
106};
107
108struct fp_fmt
109{
110 unsigned op2 : 7;
111 unsigned r : 1;
112 unsigned s : 1;
113 unsigned d : 1;
114 unsigned p : 1;
115 unsigned src1 : 5;
116 unsigned dest : 5;
117 unsigned src2 : 5;
118 unsigned op1 : 6;
119};
120
121union insn_fmt
122{
123 struct gen_fmt gen;
124 struct geni_fmt geni;
125 struct esc_fmt esc;
126 struct ctrl_fmt ctrl;
127 struct fp_fmt fp;
128 long int_val;
129};
130#endif
131
132typedef enum
133{
134 Error, not_branch, uncond, uncond_d, cond, cond_d
135} branch_type;
136
137
This page took 0.027237 seconds and 4 git commands to generate.