c_value_print: Revert 'val' to a reference for TYPE_CODE_STRUCT
[deliverable/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
4 Copyright (C) 2016 Free Software Foundation, Inc.
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
WT
30 X86_TDESC_AVX_MPX = 4,
31 X86_TDESC_AVX512 = 5,
ae91f625
MK
32};
33
34#ifdef __x86_64__
35
36#if defined __LP64__ || !defined IN_PROCESS_AGENT
37/* Defined in auto-generated file amd64-linux.c. */
38void init_registers_amd64_linux (void);
39extern const struct target_desc *tdesc_amd64_linux;
40
41/* Defined in auto-generated file amd64-avx-linux.c. */
42void init_registers_amd64_avx_linux (void);
43extern const struct target_desc *tdesc_amd64_avx_linux;
44
45/* Defined in auto-generated file amd64-avx512-linux.c. */
46void init_registers_amd64_avx512_linux (void);
47extern const struct target_desc *tdesc_amd64_avx512_linux;
48
2b863f51
WT
49/* Defined in auto-generated file amd64-avx-mpx-linux.c. */
50void init_registers_amd64_avx_mpx_linux (void);
51extern const struct target_desc *tdesc_amd64_avx_mpx_linux;
52
ae91f625
MK
53/* Defined in auto-generated file amd64-mpx-linux.c. */
54void init_registers_amd64_mpx_linux (void);
55extern const struct target_desc *tdesc_amd64_mpx_linux;
56#endif
57
58#if defined __ILP32__ || !defined IN_PROCESS_AGENT
59/* Defined in auto-generated file x32-linux.c. */
60void init_registers_x32_linux (void);
61extern const struct target_desc *tdesc_x32_linux;
62
63/* Defined in auto-generated file x32-avx-linux.c. */
64void init_registers_x32_avx_linux (void);
65extern const struct target_desc *tdesc_x32_avx_linux;
66
67/* Defined in auto-generated file x32-avx512-linux.c. */
68void init_registers_x32_avx512_linux (void);
69extern const struct target_desc *tdesc_x32_avx512_linux;
70#endif
71
72#endif
73
74#if defined __i386__ || !defined IN_PROCESS_AGENT
75/* Defined in auto-generated file i386-linux.c. */
76void init_registers_i386_linux (void);
77extern const struct target_desc *tdesc_i386_linux;
78
79/* Defined in auto-generated file i386-mmx-linux.c. */
80void init_registers_i386_mmx_linux (void);
81extern const struct target_desc *tdesc_i386_mmx_linux;
82
83/* Defined in auto-generated file i386-avx-linux.c. */
84void init_registers_i386_avx_linux (void);
85extern const struct target_desc *tdesc_i386_avx_linux;
86
2b863f51
WT
87/* Defined in auto-generated file i386-avx-mpx-linux.c. */
88void init_registers_i386_avx_mpx_linux (void);
89extern const struct target_desc *tdesc_i386_avx_mpx_linux;
90
ae91f625
MK
91/* Defined in auto-generated file i386-avx512-linux.c. */
92void init_registers_i386_avx512_linux (void);
93extern const struct target_desc *tdesc_i386_avx512_linux;
94
95/* Defined in auto-generated file i386-mpx-linux.c. */
96void init_registers_i386_mpx_linux (void);
97extern const struct target_desc *tdesc_i386_mpx_linux;
98#endif
This page took 0.038859 seconds and 4 git commands to generate.