Commits
Jeremy Huddleston Sequoia authored caa2e0328eb
1 + | diff -Naurp cctools-921.orig/include/mach/i386/thread_status.h cctools-921/include/mach/i386/thread_status.h |
2 + | --- include/mach/i386/thread_status.h 2018-10-04 15:13:10.000000000 -0700 |
3 + | +++ include/mach/i386/thread_status.h 2018-11-07 14:22:53.000000000 -0800 |
4 + | |
5 + | #define x86_AVX_STATE32 16 |
6 + | #define x86_AVX_STATE64 (x86_AVX_STATE32 + 1) |
7 + | #define x86_AVX_STATE (x86_AVX_STATE32 + 2) |
8 + | -#define x86_AVX512_STATE32 19 |
9 + | -#define x86_AVX512_STATE64 (x86_AVX512_STATE32 + 1) |
10 + | -#define x86_AVX512_STATE (x86_AVX512_STATE32 + 2) |
11 + | |
12 + | |
13 + | /* |
14 + | |
15 + | (x == x86_AVX_STATE32) || \ |
16 + | (x == x86_AVX_STATE64) || \ |
17 + | (x == x86_AVX_STATE) || \ |
18 + | - (x == x86_AVX512_STATE32) || \ |
19 + | - (x == x86_AVX512_STATE64) || \ |
20 + | - (x == x86_AVX512_STATE) || \ |
21 + | (x == THREAD_STATE_NONE)) |
22 + | |
23 + | struct x86_state_hdr { |
24 + | |
25 + | #define x86_AVX_STATE32_COUNT ((mach_msg_type_number_t) \ |
26 + | (sizeof(x86_avx_state32_t)/sizeof(unsigned int))) |
27 + | |
28 + | -typedef _STRUCT_X86_AVX512_STATE32 x86_avx512_state32_t; |
29 + | -#define x86_AVX512_STATE32_COUNT ((mach_msg_type_number_t) \ |
30 + | - (sizeof(x86_avx512_state32_t)/sizeof(unsigned int))) |
31 + | - |
32 + | /* |
33 + | * to be deprecated in the future |
34 + | */ |
35 + | |
36 + | #define x86_AVX_STATE64_COUNT ((mach_msg_type_number_t) \ |
37 + | (sizeof(x86_avx_state64_t)/sizeof(unsigned int))) |
38 + | |
39 + | -typedef _STRUCT_X86_AVX512_STATE64 x86_avx512_state64_t; |
40 + | -#define x86_AVX512_STATE64_COUNT ((mach_msg_type_number_t) \ |
41 + | - (sizeof(x86_avx512_state64_t)/sizeof(unsigned int))) |
42 + | - |
43 + | typedef _STRUCT_X86_EXCEPTION_STATE64 x86_exception_state64_t; |
44 + | #define x86_EXCEPTION_STATE64_COUNT ((mach_msg_type_number_t) \ |
45 + | ( sizeof (x86_exception_state64_t) / sizeof (int) )) |
46 + | |
47 + | } ufs; |
48 + | }; |
49 + | |
50 + | -struct x86_avx512_state { |
51 + | - x86_state_hdr_t ash; |
52 + | - union { |
53 + | - x86_avx512_state32_t as32; |
54 + | - x86_avx512_state64_t as64; |
55 + | - } ufs; |
56 + | -}; |
57 + | - |
58 + | typedef struct x86_thread_state x86_thread_state_t; |
59 + | #define x86_THREAD_STATE_COUNT ((mach_msg_type_number_t) \ |
60 + | ( sizeof (x86_thread_state_t) / sizeof (int) )) |
61 + | |
62 + | #define x86_AVX_STATE_COUNT ((mach_msg_type_number_t) \ |
63 + | (sizeof(x86_avx_state_t)/sizeof(unsigned int))) |
64 + | |
65 + | -typedef struct x86_avx512_state x86_avx512_state_t; |
66 + | -#define x86_AVX512_STATE_COUNT ((mach_msg_type_number_t) \ |
67 + | - (sizeof(x86_avx512_state_t)/sizeof(unsigned int))) |
68 + | - |
69 + | /* |
70 + | * Machine-independent way for servers and Mach's exception mechanism to |
71 + | * choose the most efficient state flavor for exception RPC's: |