]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/gdbserver/linux-x86-tdesc.h
Add target description for avx-avx512.
[thirdparty/binutils-gdb.git] / gdb / gdbserver / linux-x86-tdesc.h
CommitLineData
ae91f625
MK
1/* Low level support for x86 (i386 and x86-64), shared between gdbserver
2 and IPA.
3
61baf725 4 Copyright (C) 2016-2017 Free Software Foundation, Inc.
ae91f625
MK
5
6 This file is part of GDB.
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20
21/* Note: since IPA obviously knows what ABI it's running on (i386 vs x86_64
22 vs x32), it's sufficient to pass only the register set here. This,
23 together with the ABI known at IPA compile time, maps to a tdesc. */
24
25enum x86_linux_tdesc {
26 X86_TDESC_MMX = 0,
27 X86_TDESC_SSE = 1,
28 X86_TDESC_AVX = 2,
29 X86_TDESC_MPX = 3,
2b863f51 30 X86_TDESC_AVX_MPX = 4,
a1fa17ee
MS
31 X86_TDESC_AVX_AVX512 = 5,
32 X86_TDESC_AVX_MPX_AVX512 = 6,
ae91f625
MK
33};
34
35#ifdef __x86_64__
36
37#if defined __LP64__ || !defined IN_PROCESS_AGENT
38/* Defined in auto-generated file amd64-linux.c. */
39void init_registers_amd64_linux (void);
40extern const struct target_desc *tdesc_amd64_linux;
41
42/* Defined in auto-generated file amd64-avx-linux.c. */
43void init_registers_amd64_avx_linux (void);
44extern const struct target_desc *tdesc_amd64_avx_linux;
45
a1fa17ee
MS
46/* Defined in auto-generated file amd64-avx-avx512-linux.c. */
47void init_registers_amd64_avx_avx512_linux (void);
48extern const struct target_desc *tdesc_amd64_avx_avx512_linux;
49
22049425
MS
50/* Defined in auto-generated file amd64-avx-mpx-avx512-linux.c. */
51void init_registers_amd64_avx_mpx_avx512_linux (void);
52extern const struct target_desc *tdesc_amd64_avx_mpx_avx512_linux;
ae91f625 53
2b863f51
WT
54/* Defined in auto-generated file amd64-avx-mpx-linux.c. */
55void init_registers_amd64_avx_mpx_linux (void);
56extern const struct target_desc *tdesc_amd64_avx_mpx_linux;
57
ae91f625
MK
58/* Defined in auto-generated file amd64-mpx-linux.c. */
59void init_registers_amd64_mpx_linux (void);
60extern const struct target_desc *tdesc_amd64_mpx_linux;
61#endif
62
63#if defined __ILP32__ || !defined IN_PROCESS_AGENT
64/* Defined in auto-generated file x32-linux.c. */
65void init_registers_x32_linux (void);
66extern const struct target_desc *tdesc_x32_linux;
67
68/* Defined in auto-generated file x32-avx-linux.c. */
69void init_registers_x32_avx_linux (void);
70extern const struct target_desc *tdesc_x32_avx_linux;
71
a1fa17ee
MS
72/* Defined in auto-generated file x32-avx-avx512-linux.c. */
73void init_registers_x32_avx_avx512_linux (void);
74extern const struct target_desc *tdesc_x32_avx_avx512_linux;
ae91f625
MK
75#endif
76
77#endif
78
79#if defined __i386__ || !defined IN_PROCESS_AGENT
80/* Defined in auto-generated file i386-linux.c. */
81void init_registers_i386_linux (void);
82extern const struct target_desc *tdesc_i386_linux;
83
84/* Defined in auto-generated file i386-mmx-linux.c. */
85void init_registers_i386_mmx_linux (void);
86extern const struct target_desc *tdesc_i386_mmx_linux;
87
88/* Defined in auto-generated file i386-avx-linux.c. */
89void init_registers_i386_avx_linux (void);
90extern const struct target_desc *tdesc_i386_avx_linux;
91
2b863f51
WT
92/* Defined in auto-generated file i386-avx-mpx-linux.c. */
93void init_registers_i386_avx_mpx_linux (void);
94extern const struct target_desc *tdesc_i386_avx_mpx_linux;
95
a1fa17ee
MS
96/* Defined in auto-generated file i386-avx-avx512-linux.c. */
97void init_registers_i386_avx_avx512_linux (void);
98extern const struct target_desc *tdesc_i386_avx_avx512_linux;
99
22049425
MS
100/* Defined in auto-generated file i386-avx-mpx-avx512-linux.c. */
101void init_registers_i386_avx_mpx_avx512_linux (void);
102extern const struct target_desc *tdesc_i386_avx_mpx_avx512_linux;
ae91f625
MK
103
104/* Defined in auto-generated file i386-mpx-linux.c. */
105void init_registers_i386_mpx_linux (void);
106extern const struct target_desc *tdesc_i386_mpx_linux;
107#endif