1 /* Low level support for ppc, 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_PPC_TDESC_INIT_H
21 #define GDBSERVER_LINUX_PPC_TDESC_INIT_H
23 /* Note: since IPA obviously knows what ABI it's running on (32 vs 64),
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 ppc_linux_tdesc
{
30 PPC_TDESC_CELL
, /* No longer used, but kept to avoid ABI changes. */
33 PPC_TDESC_ISA205_ALTIVEC
,
35 PPC_TDESC_ISA205_PPR_DSCR_VSX
,
37 PPC_TDESC_ISA207_HTM_VSX
,
41 #if !defined __powerpc64__ || !defined IN_PROCESS_AGENT
43 /* Defined in auto-generated file powerpc-32l.c. */
44 void init_registers_powerpc_32l (void);
46 /* Defined in auto-generated file powerpc-altivec32l.c. */
47 void init_registers_powerpc_altivec32l (void);
49 /* Defined in auto-generated file powerpc-vsx32l.c. */
50 void init_registers_powerpc_vsx32l (void);
52 /* Defined in auto-generated file powerpc-isa205-32l.c. */
53 void init_registers_powerpc_isa205_32l (void);
55 /* Defined in auto-generated file powerpc-isa205-altivec32l.c. */
56 void init_registers_powerpc_isa205_altivec32l (void);
58 /* Defined in auto-generated file powerpc-isa205-vsx32l.c. */
59 void init_registers_powerpc_isa205_vsx32l (void);
61 /* Defined in auto-generated file powerpc-isa205-ppr-dscr-vsx32l.c. */
62 void init_registers_powerpc_isa205_ppr_dscr_vsx32l (void);
64 /* Defined in auto-generated file powerpc-isa207-vsx32l.c. */
65 void init_registers_powerpc_isa207_vsx32l (void);
67 /* Defined in auto-generated file powerpc-isa207-htm-vsx32l.c. */
68 void init_registers_powerpc_isa207_htm_vsx32l (void);
70 /* Defined in auto-generated file powerpc-e500l.c. */
71 void init_registers_powerpc_e500l (void);
75 #if defined __powerpc64__
77 /* Defined in auto-generated file powerpc-64l.c. */
78 void init_registers_powerpc_64l (void);
80 /* Defined in auto-generated file powerpc-altivec64l.c. */
81 void init_registers_powerpc_altivec64l (void);
83 /* Defined in auto-generated file powerpc-vsx64l.c. */
84 void init_registers_powerpc_vsx64l (void);
86 /* Defined in auto-generated file powerpc-isa205-64l.c. */
87 void init_registers_powerpc_isa205_64l (void);
89 /* Defined in auto-generated file powerpc-isa205-altivec64l.c. */
90 void init_registers_powerpc_isa205_altivec64l (void);
92 /* Defined in auto-generated file powerpc-isa205-vsx64l.c. */
93 void init_registers_powerpc_isa205_vsx64l (void);
95 /* Defined in auto-generated file powerpc-isa205-ppr-dscr-vsx64l.c. */
96 void init_registers_powerpc_isa205_ppr_dscr_vsx64l (void);
98 /* Defined in auto-generated file powerpc-isa207-vsx64l.c. */
99 void init_registers_powerpc_isa207_vsx64l (void);
101 /* Defined in auto-generated file powerpc-isa207-htm-vsx64l.c. */
102 void init_registers_powerpc_isa207_htm_vsx64l (void);
106 #endif /* GDBSERVER_LINUX_PPC_TDESC_INIT_H */