1 /* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
2 Original: aarch64.xml */
6 #include "target-descriptions.h"
8 struct target_desc
*tdesc_aarch64
;
10 initialize_tdesc_aarch64 (void)
12 struct target_desc
*result
= allocate_target_description ();
13 set_tdesc_architecture (result
, bfd_scan_arch ("aarch64"));
15 struct tdesc_feature
*feature
;
17 feature
= tdesc_create_feature (result
, "org.gnu.gdb.aarch64.core");
18 struct tdesc_type
*field_type
;
19 struct tdesc_type
*type
;
20 type
= tdesc_create_flags (feature
, "cpsr_flags", 4);
21 tdesc_add_flag (type
, 0, "SP");
22 tdesc_add_flag (type
, 1, "");
23 tdesc_add_bitfield (type
, "EL", 2, 3);
24 tdesc_add_flag (type
, 4, "nRW");
25 tdesc_add_flag (type
, 5, "");
26 tdesc_add_flag (type
, 6, "F");
27 tdesc_add_flag (type
, 7, "I");
28 tdesc_add_flag (type
, 8, "A");
29 tdesc_add_flag (type
, 9, "D");
30 tdesc_add_flag (type
, 20, "IL");
31 tdesc_add_flag (type
, 21, "SS");
32 tdesc_add_flag (type
, 28, "V");
33 tdesc_add_flag (type
, 29, "C");
34 tdesc_add_flag (type
, 30, "Z");
35 tdesc_add_flag (type
, 31, "N");
37 tdesc_create_reg (feature
, "x0", 0, 1, NULL
, 64, "int");
38 tdesc_create_reg (feature
, "x1", 1, 1, NULL
, 64, "int");
39 tdesc_create_reg (feature
, "x2", 2, 1, NULL
, 64, "int");
40 tdesc_create_reg (feature
, "x3", 3, 1, NULL
, 64, "int");
41 tdesc_create_reg (feature
, "x4", 4, 1, NULL
, 64, "int");
42 tdesc_create_reg (feature
, "x5", 5, 1, NULL
, 64, "int");
43 tdesc_create_reg (feature
, "x6", 6, 1, NULL
, 64, "int");
44 tdesc_create_reg (feature
, "x7", 7, 1, NULL
, 64, "int");
45 tdesc_create_reg (feature
, "x8", 8, 1, NULL
, 64, "int");
46 tdesc_create_reg (feature
, "x9", 9, 1, NULL
, 64, "int");
47 tdesc_create_reg (feature
, "x10", 10, 1, NULL
, 64, "int");
48 tdesc_create_reg (feature
, "x11", 11, 1, NULL
, 64, "int");
49 tdesc_create_reg (feature
, "x12", 12, 1, NULL
, 64, "int");
50 tdesc_create_reg (feature
, "x13", 13, 1, NULL
, 64, "int");
51 tdesc_create_reg (feature
, "x14", 14, 1, NULL
, 64, "int");
52 tdesc_create_reg (feature
, "x15", 15, 1, NULL
, 64, "int");
53 tdesc_create_reg (feature
, "x16", 16, 1, NULL
, 64, "int");
54 tdesc_create_reg (feature
, "x17", 17, 1, NULL
, 64, "int");
55 tdesc_create_reg (feature
, "x18", 18, 1, NULL
, 64, "int");
56 tdesc_create_reg (feature
, "x19", 19, 1, NULL
, 64, "int");
57 tdesc_create_reg (feature
, "x20", 20, 1, NULL
, 64, "int");
58 tdesc_create_reg (feature
, "x21", 21, 1, NULL
, 64, "int");
59 tdesc_create_reg (feature
, "x22", 22, 1, NULL
, 64, "int");
60 tdesc_create_reg (feature
, "x23", 23, 1, NULL
, 64, "int");
61 tdesc_create_reg (feature
, "x24", 24, 1, NULL
, 64, "int");
62 tdesc_create_reg (feature
, "x25", 25, 1, NULL
, 64, "int");
63 tdesc_create_reg (feature
, "x26", 26, 1, NULL
, 64, "int");
64 tdesc_create_reg (feature
, "x27", 27, 1, NULL
, 64, "int");
65 tdesc_create_reg (feature
, "x28", 28, 1, NULL
, 64, "int");
66 tdesc_create_reg (feature
, "x29", 29, 1, NULL
, 64, "int");
67 tdesc_create_reg (feature
, "x30", 30, 1, NULL
, 64, "int");
68 tdesc_create_reg (feature
, "sp", 31, 1, NULL
, 64, "data_ptr");
69 tdesc_create_reg (feature
, "pc", 32, 1, NULL
, 64, "code_ptr");
70 tdesc_create_reg (feature
, "cpsr", 33, 1, NULL
, 32, "cpsr_flags");
72 feature
= tdesc_create_feature (result
, "org.gnu.gdb.aarch64.fpu");
73 field_type
= tdesc_named_type (feature
, "ieee_double");
74 tdesc_create_vector (feature
, "v2d", field_type
, 2);
76 field_type
= tdesc_named_type (feature
, "uint64");
77 tdesc_create_vector (feature
, "v2u", field_type
, 2);
79 field_type
= tdesc_named_type (feature
, "int64");
80 tdesc_create_vector (feature
, "v2i", field_type
, 2);
82 field_type
= tdesc_named_type (feature
, "ieee_single");
83 tdesc_create_vector (feature
, "v4f", field_type
, 4);
85 field_type
= tdesc_named_type (feature
, "uint32");
86 tdesc_create_vector (feature
, "v4u", field_type
, 4);
88 field_type
= tdesc_named_type (feature
, "int32");
89 tdesc_create_vector (feature
, "v4i", field_type
, 4);
91 field_type
= tdesc_named_type (feature
, "uint16");
92 tdesc_create_vector (feature
, "v8u", field_type
, 8);
94 field_type
= tdesc_named_type (feature
, "int16");
95 tdesc_create_vector (feature
, "v8i", field_type
, 8);
97 field_type
= tdesc_named_type (feature
, "uint8");
98 tdesc_create_vector (feature
, "v16u", field_type
, 16);
100 field_type
= tdesc_named_type (feature
, "int8");
101 tdesc_create_vector (feature
, "v16i", field_type
, 16);
103 field_type
= tdesc_named_type (feature
, "uint128");
104 tdesc_create_vector (feature
, "v1u", field_type
, 1);
106 field_type
= tdesc_named_type (feature
, "int128");
107 tdesc_create_vector (feature
, "v1i", field_type
, 1);
109 type
= tdesc_create_union (feature
, "vnd");
110 field_type
= tdesc_named_type (feature
, "v2d");
111 tdesc_add_field (type
, "f", field_type
);
112 field_type
= tdesc_named_type (feature
, "v2u");
113 tdesc_add_field (type
, "u", field_type
);
114 field_type
= tdesc_named_type (feature
, "v2i");
115 tdesc_add_field (type
, "s", field_type
);
117 type
= tdesc_create_union (feature
, "vns");
118 field_type
= tdesc_named_type (feature
, "v4f");
119 tdesc_add_field (type
, "f", field_type
);
120 field_type
= tdesc_named_type (feature
, "v4u");
121 tdesc_add_field (type
, "u", field_type
);
122 field_type
= tdesc_named_type (feature
, "v4i");
123 tdesc_add_field (type
, "s", field_type
);
125 type
= tdesc_create_union (feature
, "vnh");
126 field_type
= tdesc_named_type (feature
, "v8u");
127 tdesc_add_field (type
, "u", field_type
);
128 field_type
= tdesc_named_type (feature
, "v8i");
129 tdesc_add_field (type
, "s", field_type
);
131 type
= tdesc_create_union (feature
, "vnb");
132 field_type
= tdesc_named_type (feature
, "v16u");
133 tdesc_add_field (type
, "u", field_type
);
134 field_type
= tdesc_named_type (feature
, "v16i");
135 tdesc_add_field (type
, "s", field_type
);
137 type
= tdesc_create_union (feature
, "vnq");
138 field_type
= tdesc_named_type (feature
, "v1u");
139 tdesc_add_field (type
, "u", field_type
);
140 field_type
= tdesc_named_type (feature
, "v1i");
141 tdesc_add_field (type
, "s", field_type
);
143 type
= tdesc_create_union (feature
, "aarch64v");
144 field_type
= tdesc_named_type (feature
, "vnd");
145 tdesc_add_field (type
, "d", field_type
);
146 field_type
= tdesc_named_type (feature
, "vns");
147 tdesc_add_field (type
, "s", field_type
);
148 field_type
= tdesc_named_type (feature
, "vnh");
149 tdesc_add_field (type
, "h", field_type
);
150 field_type
= tdesc_named_type (feature
, "vnb");
151 tdesc_add_field (type
, "b", field_type
);
152 field_type
= tdesc_named_type (feature
, "vnq");
153 tdesc_add_field (type
, "q", field_type
);
155 tdesc_create_reg (feature
, "v0", 34, 1, NULL
, 128, "aarch64v");
156 tdesc_create_reg (feature
, "v1", 35, 1, NULL
, 128, "aarch64v");
157 tdesc_create_reg (feature
, "v2", 36, 1, NULL
, 128, "aarch64v");
158 tdesc_create_reg (feature
, "v3", 37, 1, NULL
, 128, "aarch64v");
159 tdesc_create_reg (feature
, "v4", 38, 1, NULL
, 128, "aarch64v");
160 tdesc_create_reg (feature
, "v5", 39, 1, NULL
, 128, "aarch64v");
161 tdesc_create_reg (feature
, "v6", 40, 1, NULL
, 128, "aarch64v");
162 tdesc_create_reg (feature
, "v7", 41, 1, NULL
, 128, "aarch64v");
163 tdesc_create_reg (feature
, "v8", 42, 1, NULL
, 128, "aarch64v");
164 tdesc_create_reg (feature
, "v9", 43, 1, NULL
, 128, "aarch64v");
165 tdesc_create_reg (feature
, "v10", 44, 1, NULL
, 128, "aarch64v");
166 tdesc_create_reg (feature
, "v11", 45, 1, NULL
, 128, "aarch64v");
167 tdesc_create_reg (feature
, "v12", 46, 1, NULL
, 128, "aarch64v");
168 tdesc_create_reg (feature
, "v13", 47, 1, NULL
, 128, "aarch64v");
169 tdesc_create_reg (feature
, "v14", 48, 1, NULL
, 128, "aarch64v");
170 tdesc_create_reg (feature
, "v15", 49, 1, NULL
, 128, "aarch64v");
171 tdesc_create_reg (feature
, "v16", 50, 1, NULL
, 128, "aarch64v");
172 tdesc_create_reg (feature
, "v17", 51, 1, NULL
, 128, "aarch64v");
173 tdesc_create_reg (feature
, "v18", 52, 1, NULL
, 128, "aarch64v");
174 tdesc_create_reg (feature
, "v19", 53, 1, NULL
, 128, "aarch64v");
175 tdesc_create_reg (feature
, "v20", 54, 1, NULL
, 128, "aarch64v");
176 tdesc_create_reg (feature
, "v21", 55, 1, NULL
, 128, "aarch64v");
177 tdesc_create_reg (feature
, "v22", 56, 1, NULL
, 128, "aarch64v");
178 tdesc_create_reg (feature
, "v23", 57, 1, NULL
, 128, "aarch64v");
179 tdesc_create_reg (feature
, "v24", 58, 1, NULL
, 128, "aarch64v");
180 tdesc_create_reg (feature
, "v25", 59, 1, NULL
, 128, "aarch64v");
181 tdesc_create_reg (feature
, "v26", 60, 1, NULL
, 128, "aarch64v");
182 tdesc_create_reg (feature
, "v27", 61, 1, NULL
, 128, "aarch64v");
183 tdesc_create_reg (feature
, "v28", 62, 1, NULL
, 128, "aarch64v");
184 tdesc_create_reg (feature
, "v29", 63, 1, NULL
, 128, "aarch64v");
185 tdesc_create_reg (feature
, "v30", 64, 1, NULL
, 128, "aarch64v");
186 tdesc_create_reg (feature
, "v31", 65, 1, NULL
, 128, "aarch64v");
187 tdesc_create_reg (feature
, "fpsr", 66, 1, NULL
, 32, "int");
188 tdesc_create_reg (feature
, "fpcr", 67, 1, NULL
, 32, "int");
190 tdesc_aarch64
= result
;
This page took 0.035291 seconds and 4 git commands to generate.