1 //===-- MachRegisterStatesX86_64.h --------------------------------*- C++
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 // Created by Sean Callanan on 3/16/11.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLDB_TOOLS_DEBUGSERVER_SOURCE_MACOSX_X86_64_MACHREGISTERSTATESX86_64_H
15 #define LLDB_TOOLS_DEBUGSERVER_SOURCE_MACOSX_X86_64_MACHREGISTERSTATESX86_64_H
19 #define __x86_64_THREAD_STATE 4
20 #define __x86_64_FLOAT_STATE 5
21 #define __x86_64_EXCEPTION_STATE 6
22 #define __x86_64_DEBUG_STATE 11
23 #define __x86_64_AVX_STATE 17
24 #define __x86_64_AVX512F_STATE 20
25 #define __x86_64_THREAD_FULL_STATE 23
53 } __x86_64_thread_state_t
;
56 uint16_t __invalid
: 1;
57 uint16_t __denorm
: 1;
61 uint16_t __precis
: 1;
67 } __x86_64_fp_control_t
;
70 uint16_t __invalid
: 1;
71 uint16_t __denorm
: 1;
75 uint16_t __precis
: 1;
76 uint16_t __stkflt
: 1;
77 uint16_t __errsumm
: 1;
84 } __x86_64_fp_status_t
;
87 uint8_t __mmst_reg
[10];
88 uint8_t __mmst_rsrv
[6];
91 typedef struct { uint8_t __xmm_reg
[16]; } __x86_64_xmm_reg
;
94 uint32_t __fpu_reserved
[2];
95 __x86_64_fp_control_t __fpu_fcw
;
96 __x86_64_fp_status_t __fpu_fsw
;
102 uint16_t __fpu_rsrv2
;
105 uint16_t __fpu_rsrv3
;
106 uint32_t __fpu_mxcsr
;
107 uint32_t __fpu_mxcsrmask
;
108 __x86_64_mmst_reg __fpu_stmm0
;
109 __x86_64_mmst_reg __fpu_stmm1
;
110 __x86_64_mmst_reg __fpu_stmm2
;
111 __x86_64_mmst_reg __fpu_stmm3
;
112 __x86_64_mmst_reg __fpu_stmm4
;
113 __x86_64_mmst_reg __fpu_stmm5
;
114 __x86_64_mmst_reg __fpu_stmm6
;
115 __x86_64_mmst_reg __fpu_stmm7
;
116 __x86_64_xmm_reg __fpu_xmm0
;
117 __x86_64_xmm_reg __fpu_xmm1
;
118 __x86_64_xmm_reg __fpu_xmm2
;
119 __x86_64_xmm_reg __fpu_xmm3
;
120 __x86_64_xmm_reg __fpu_xmm4
;
121 __x86_64_xmm_reg __fpu_xmm5
;
122 __x86_64_xmm_reg __fpu_xmm6
;
123 __x86_64_xmm_reg __fpu_xmm7
;
124 __x86_64_xmm_reg __fpu_xmm8
;
125 __x86_64_xmm_reg __fpu_xmm9
;
126 __x86_64_xmm_reg __fpu_xmm10
;
127 __x86_64_xmm_reg __fpu_xmm11
;
128 __x86_64_xmm_reg __fpu_xmm12
;
129 __x86_64_xmm_reg __fpu_xmm13
;
130 __x86_64_xmm_reg __fpu_xmm14
;
131 __x86_64_xmm_reg __fpu_xmm15
;
132 uint8_t __fpu_rsrv4
[6 * 16];
133 uint32_t __fpu_reserved1
;
134 } __x86_64_float_state_t
;
137 uint32_t __fpu_reserved
[2];
138 __x86_64_fp_control_t __fpu_fcw
;
139 __x86_64_fp_status_t __fpu_fsw
;
145 uint16_t __fpu_rsrv2
;
148 uint16_t __fpu_rsrv3
;
149 uint32_t __fpu_mxcsr
;
150 uint32_t __fpu_mxcsrmask
;
151 __x86_64_mmst_reg __fpu_stmm0
;
152 __x86_64_mmst_reg __fpu_stmm1
;
153 __x86_64_mmst_reg __fpu_stmm2
;
154 __x86_64_mmst_reg __fpu_stmm3
;
155 __x86_64_mmst_reg __fpu_stmm4
;
156 __x86_64_mmst_reg __fpu_stmm5
;
157 __x86_64_mmst_reg __fpu_stmm6
;
158 __x86_64_mmst_reg __fpu_stmm7
;
159 __x86_64_xmm_reg __fpu_xmm0
;
160 __x86_64_xmm_reg __fpu_xmm1
;
161 __x86_64_xmm_reg __fpu_xmm2
;
162 __x86_64_xmm_reg __fpu_xmm3
;
163 __x86_64_xmm_reg __fpu_xmm4
;
164 __x86_64_xmm_reg __fpu_xmm5
;
165 __x86_64_xmm_reg __fpu_xmm6
;
166 __x86_64_xmm_reg __fpu_xmm7
;
167 __x86_64_xmm_reg __fpu_xmm8
;
168 __x86_64_xmm_reg __fpu_xmm9
;
169 __x86_64_xmm_reg __fpu_xmm10
;
170 __x86_64_xmm_reg __fpu_xmm11
;
171 __x86_64_xmm_reg __fpu_xmm12
;
172 __x86_64_xmm_reg __fpu_xmm13
;
173 __x86_64_xmm_reg __fpu_xmm14
;
174 __x86_64_xmm_reg __fpu_xmm15
;
175 uint8_t __fpu_rsrv4
[6 * 16];
176 uint32_t __fpu_reserved1
;
177 uint8_t __avx_reserved1
[64];
178 __x86_64_xmm_reg __fpu_ymmh0
;
179 __x86_64_xmm_reg __fpu_ymmh1
;
180 __x86_64_xmm_reg __fpu_ymmh2
;
181 __x86_64_xmm_reg __fpu_ymmh3
;
182 __x86_64_xmm_reg __fpu_ymmh4
;
183 __x86_64_xmm_reg __fpu_ymmh5
;
184 __x86_64_xmm_reg __fpu_ymmh6
;
185 __x86_64_xmm_reg __fpu_ymmh7
;
186 __x86_64_xmm_reg __fpu_ymmh8
;
187 __x86_64_xmm_reg __fpu_ymmh9
;
188 __x86_64_xmm_reg __fpu_ymmh10
;
189 __x86_64_xmm_reg __fpu_ymmh11
;
190 __x86_64_xmm_reg __fpu_ymmh12
;
191 __x86_64_xmm_reg __fpu_ymmh13
;
192 __x86_64_xmm_reg __fpu_ymmh14
;
193 __x86_64_xmm_reg __fpu_ymmh15
;
194 } __x86_64_avx_state_t
;
196 typedef struct { uint8_t __ymm_reg
[32]; } __x86_64_ymm_reg
;
197 typedef struct { uint8_t __zmm_reg
[64]; } __x86_64_zmm_reg
;
198 typedef struct { uint8_t __opmask_reg
[8]; } __x86_64_opmask_reg
;
201 uint32_t __fpu_reserved
[2];
202 __x86_64_fp_control_t __fpu_fcw
;
203 __x86_64_fp_status_t __fpu_fsw
;
209 uint16_t __fpu_rsrv2
;
212 uint16_t __fpu_rsrv3
;
213 uint32_t __fpu_mxcsr
;
214 uint32_t __fpu_mxcsrmask
;
215 __x86_64_mmst_reg __fpu_stmm0
;
216 __x86_64_mmst_reg __fpu_stmm1
;
217 __x86_64_mmst_reg __fpu_stmm2
;
218 __x86_64_mmst_reg __fpu_stmm3
;
219 __x86_64_mmst_reg __fpu_stmm4
;
220 __x86_64_mmst_reg __fpu_stmm5
;
221 __x86_64_mmst_reg __fpu_stmm6
;
222 __x86_64_mmst_reg __fpu_stmm7
;
223 __x86_64_xmm_reg __fpu_xmm0
;
224 __x86_64_xmm_reg __fpu_xmm1
;
225 __x86_64_xmm_reg __fpu_xmm2
;
226 __x86_64_xmm_reg __fpu_xmm3
;
227 __x86_64_xmm_reg __fpu_xmm4
;
228 __x86_64_xmm_reg __fpu_xmm5
;
229 __x86_64_xmm_reg __fpu_xmm6
;
230 __x86_64_xmm_reg __fpu_xmm7
;
231 __x86_64_xmm_reg __fpu_xmm8
;
232 __x86_64_xmm_reg __fpu_xmm9
;
233 __x86_64_xmm_reg __fpu_xmm10
;
234 __x86_64_xmm_reg __fpu_xmm11
;
235 __x86_64_xmm_reg __fpu_xmm12
;
236 __x86_64_xmm_reg __fpu_xmm13
;
237 __x86_64_xmm_reg __fpu_xmm14
;
238 __x86_64_xmm_reg __fpu_xmm15
;
239 uint8_t __fpu_rsrv4
[6 * 16];
240 uint32_t __fpu_reserved1
;
241 uint8_t __avx_reserved1
[64];
242 __x86_64_xmm_reg __fpu_ymmh0
;
243 __x86_64_xmm_reg __fpu_ymmh1
;
244 __x86_64_xmm_reg __fpu_ymmh2
;
245 __x86_64_xmm_reg __fpu_ymmh3
;
246 __x86_64_xmm_reg __fpu_ymmh4
;
247 __x86_64_xmm_reg __fpu_ymmh5
;
248 __x86_64_xmm_reg __fpu_ymmh6
;
249 __x86_64_xmm_reg __fpu_ymmh7
;
250 __x86_64_xmm_reg __fpu_ymmh8
;
251 __x86_64_xmm_reg __fpu_ymmh9
;
252 __x86_64_xmm_reg __fpu_ymmh10
;
253 __x86_64_xmm_reg __fpu_ymmh11
;
254 __x86_64_xmm_reg __fpu_ymmh12
;
255 __x86_64_xmm_reg __fpu_ymmh13
;
256 __x86_64_xmm_reg __fpu_ymmh14
;
257 __x86_64_xmm_reg __fpu_ymmh15
;
258 __x86_64_opmask_reg __fpu_k0
;
259 __x86_64_opmask_reg __fpu_k1
;
260 __x86_64_opmask_reg __fpu_k2
;
261 __x86_64_opmask_reg __fpu_k3
;
262 __x86_64_opmask_reg __fpu_k4
;
263 __x86_64_opmask_reg __fpu_k5
;
264 __x86_64_opmask_reg __fpu_k6
;
265 __x86_64_opmask_reg __fpu_k7
;
266 __x86_64_ymm_reg __fpu_zmmh0
;
267 __x86_64_ymm_reg __fpu_zmmh1
;
268 __x86_64_ymm_reg __fpu_zmmh2
;
269 __x86_64_ymm_reg __fpu_zmmh3
;
270 __x86_64_ymm_reg __fpu_zmmh4
;
271 __x86_64_ymm_reg __fpu_zmmh5
;
272 __x86_64_ymm_reg __fpu_zmmh6
;
273 __x86_64_ymm_reg __fpu_zmmh7
;
274 __x86_64_ymm_reg __fpu_zmmh8
;
275 __x86_64_ymm_reg __fpu_zmmh9
;
276 __x86_64_ymm_reg __fpu_zmmh10
;
277 __x86_64_ymm_reg __fpu_zmmh11
;
278 __x86_64_ymm_reg __fpu_zmmh12
;
279 __x86_64_ymm_reg __fpu_zmmh13
;
280 __x86_64_ymm_reg __fpu_zmmh14
;
281 __x86_64_ymm_reg __fpu_zmmh15
;
282 __x86_64_zmm_reg __fpu_zmm16
;
283 __x86_64_zmm_reg __fpu_zmm17
;
284 __x86_64_zmm_reg __fpu_zmm18
;
285 __x86_64_zmm_reg __fpu_zmm19
;
286 __x86_64_zmm_reg __fpu_zmm20
;
287 __x86_64_zmm_reg __fpu_zmm21
;
288 __x86_64_zmm_reg __fpu_zmm22
;
289 __x86_64_zmm_reg __fpu_zmm23
;
290 __x86_64_zmm_reg __fpu_zmm24
;
291 __x86_64_zmm_reg __fpu_zmm25
;
292 __x86_64_zmm_reg __fpu_zmm26
;
293 __x86_64_zmm_reg __fpu_zmm27
;
294 __x86_64_zmm_reg __fpu_zmm28
;
295 __x86_64_zmm_reg __fpu_zmm29
;
296 __x86_64_zmm_reg __fpu_zmm30
;
297 __x86_64_zmm_reg __fpu_zmm31
;
299 } __x86_64_avx512f_state_t
;
304 uint64_t __faultvaddr
;
305 } __x86_64_exception_state_t
;
316 } __x86_64_debug_state_t
;