1 /* Low level support for s390, shared between gdbserver and IPA.
3 Copyright (C) 2016-2023 Free Software Foundation, Inc.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 #ifndef GDBSERVER_LINUX_S390_TDESC_H
21 #define GDBSERVER_LINUX_S390_TDESC_H
23 /* Note: since IPA obviously knows what ABI it's running on (s390 vs s390x),
24 it's sufficient to pass only the register set here. This, together with
25 the ABI known at IPA compile time, maps to a tdesc. */
27 enum s390_linux_tdesc
{
42 /* Defined in auto-generated file s390x-linux64.c. */
43 void init_registers_s390x_linux64 (void);
44 extern const struct target_desc
*tdesc_s390x_linux64
;
46 /* Defined in auto-generated file s390x-linux64v1.c. */
47 void init_registers_s390x_linux64v1 (void);
48 extern const struct target_desc
*tdesc_s390x_linux64v1
;
50 /* Defined in auto-generated file s390x-linux64v2.c. */
51 void init_registers_s390x_linux64v2 (void);
52 extern const struct target_desc
*tdesc_s390x_linux64v2
;
54 /* Defined in auto-generated file s390x-te-linux64.c. */
55 void init_registers_s390x_te_linux64 (void);
56 extern const struct target_desc
*tdesc_s390x_te_linux64
;
58 /* Defined in auto-generated file s390x-vx-linux64.c. */
59 void init_registers_s390x_vx_linux64 (void);
60 extern const struct target_desc
*tdesc_s390x_vx_linux64
;
62 /* Defined in auto-generated file s390x-tevx-linux64.c. */
63 void init_registers_s390x_tevx_linux64 (void);
64 extern const struct target_desc
*tdesc_s390x_tevx_linux64
;
66 /* Defined in auto-generated file s390x-gs-linux64.c. */
67 void init_registers_s390x_gs_linux64 (void);
68 extern const struct target_desc
*tdesc_s390x_gs_linux64
;
72 #if !defined __s390x__ || !defined IN_PROCESS_AGENT
74 /* Defined in auto-generated file s390-linux32.c. */
75 void init_registers_s390_linux32 (void);
76 extern const struct target_desc
*tdesc_s390_linux32
;
78 /* Defined in auto-generated file s390-linux32v1.c. */
79 void init_registers_s390_linux32v1 (void);
80 extern const struct target_desc
*tdesc_s390_linux32v1
;
82 /* Defined in auto-generated file s390-linux32v2.c. */
83 void init_registers_s390_linux32v2 (void);
84 extern const struct target_desc
*tdesc_s390_linux32v2
;
86 /* Defined in auto-generated file s390-linux64.c. */
87 void init_registers_s390_linux64 (void);
88 extern const struct target_desc
*tdesc_s390_linux64
;
90 /* Defined in auto-generated file s390-linux64v1.c. */
91 void init_registers_s390_linux64v1 (void);
92 extern const struct target_desc
*tdesc_s390_linux64v1
;
94 /* Defined in auto-generated file s390-linux64v2.c. */
95 void init_registers_s390_linux64v2 (void);
96 extern const struct target_desc
*tdesc_s390_linux64v2
;
98 /* Defined in auto-generated file s390-te-linux64.c. */
99 void init_registers_s390_te_linux64 (void);
100 extern const struct target_desc
*tdesc_s390_te_linux64
;
102 /* Defined in auto-generated file s390-vx-linux64.c. */
103 void init_registers_s390_vx_linux64 (void);
104 extern const struct target_desc
*tdesc_s390_vx_linux64
;
106 /* Defined in auto-generated file s390-tevx-linux64.c. */
107 void init_registers_s390_tevx_linux64 (void);
108 extern const struct target_desc
*tdesc_s390_tevx_linux64
;
110 /* Defined in auto-generated file s390-gs-linux64.c. */
111 void init_registers_s390_gs_linux64 (void);
112 extern const struct target_desc
*tdesc_s390_gs_linux64
;
116 #endif /* GDBSERVER_LINUX_S390_TDESC_H */