| 1 |
/* Low level support for ppc, shared between gdbserver and IPA. |
| 2 |
|
| 3 |
Copyright (C) 2016-2025 Free Software Foundation, Inc. |
| 4 |
|
| 5 |
This file is part of GDB. |
| 6 |
|
| 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. |
| 11 |
|
| 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. |
| 16 |
|
| 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/>. */ |
| 19 |
|
| 20 |
#ifndef GDBSERVER_LINUX_PPC_TDESC_INIT_H |
| 21 |
#define GDBSERVER_LINUX_PPC_TDESC_INIT_H |
| 22 |
|
| 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. */ |
| 26 |
|
| 27 |
enum ppc_linux_tdesc { |
| 28 |
PPC_TDESC_BASE, |
| 29 |
PPC_TDESC_ALTIVEC, |
| 30 |
PPC_TDESC_CELL, /* No longer used, but kept to avoid ABI changes. */ |
| 31 |
PPC_TDESC_VSX, |
| 32 |
PPC_TDESC_ISA205, |
| 33 |
PPC_TDESC_ISA205_ALTIVEC, |
| 34 |
PPC_TDESC_ISA205_VSX, |
| 35 |
PPC_TDESC_ISA205_PPR_DSCR_VSX, |
| 36 |
PPC_TDESC_ISA207_VSX, |
| 37 |
PPC_TDESC_ISA207_HTM_VSX, |
| 38 |
PPC_TDESC_E500, |
| 39 |
}; |
| 40 |
|
| 41 |
#if !defined __powerpc64__ || !defined IN_PROCESS_AGENT |
| 42 |
|
| 43 |
/* Defined in auto-generated file powerpc-32l.c. */ |
| 44 |
void init_registers_powerpc_32l (void); |
| 45 |
|
| 46 |
/* Defined in auto-generated file powerpc-altivec32l.c. */ |
| 47 |
void init_registers_powerpc_altivec32l (void); |
| 48 |
|
| 49 |
/* Defined in auto-generated file powerpc-vsx32l.c. */ |
| 50 |
void init_registers_powerpc_vsx32l (void); |
| 51 |
|
| 52 |
/* Defined in auto-generated file powerpc-isa205-32l.c. */ |
| 53 |
void init_registers_powerpc_isa205_32l (void); |
| 54 |
|
| 55 |
/* Defined in auto-generated file powerpc-isa205-altivec32l.c. */ |
| 56 |
void init_registers_powerpc_isa205_altivec32l (void); |
| 57 |
|
| 58 |
/* Defined in auto-generated file powerpc-isa205-vsx32l.c. */ |
| 59 |
void init_registers_powerpc_isa205_vsx32l (void); |
| 60 |
|
| 61 |
/* Defined in auto-generated file powerpc-isa205-ppr-dscr-vsx32l.c. */ |
| 62 |
void init_registers_powerpc_isa205_ppr_dscr_vsx32l (void); |
| 63 |
|
| 64 |
/* Defined in auto-generated file powerpc-isa207-vsx32l.c. */ |
| 65 |
void init_registers_powerpc_isa207_vsx32l (void); |
| 66 |
|
| 67 |
/* Defined in auto-generated file powerpc-isa207-htm-vsx32l.c. */ |
| 68 |
void init_registers_powerpc_isa207_htm_vsx32l (void); |
| 69 |
|
| 70 |
/* Defined in auto-generated file powerpc-e500l.c. */ |
| 71 |
void init_registers_powerpc_e500l (void); |
| 72 |
|
| 73 |
#endif |
| 74 |
|
| 75 |
#if defined __powerpc64__ |
| 76 |
|
| 77 |
/* Defined in auto-generated file powerpc-64l.c. */ |
| 78 |
void init_registers_powerpc_64l (void); |
| 79 |
|
| 80 |
/* Defined in auto-generated file powerpc-altivec64l.c. */ |
| 81 |
void init_registers_powerpc_altivec64l (void); |
| 82 |
|
| 83 |
/* Defined in auto-generated file powerpc-vsx64l.c. */ |
| 84 |
void init_registers_powerpc_vsx64l (void); |
| 85 |
|
| 86 |
/* Defined in auto-generated file powerpc-isa205-64l.c. */ |
| 87 |
void init_registers_powerpc_isa205_64l (void); |
| 88 |
|
| 89 |
/* Defined in auto-generated file powerpc-isa205-altivec64l.c. */ |
| 90 |
void init_registers_powerpc_isa205_altivec64l (void); |
| 91 |
|
| 92 |
/* Defined in auto-generated file powerpc-isa205-vsx64l.c. */ |
| 93 |
void init_registers_powerpc_isa205_vsx64l (void); |
| 94 |
|
| 95 |
/* Defined in auto-generated file powerpc-isa205-ppr-dscr-vsx64l.c. */ |
| 96 |
void init_registers_powerpc_isa205_ppr_dscr_vsx64l (void); |
| 97 |
|
| 98 |
/* Defined in auto-generated file powerpc-isa207-vsx64l.c. */ |
| 99 |
void init_registers_powerpc_isa207_vsx64l (void); |
| 100 |
|
| 101 |
/* Defined in auto-generated file powerpc-isa207-htm-vsx64l.c. */ |
| 102 |
void init_registers_powerpc_isa207_htm_vsx64l (void); |
| 103 |
|
| 104 |
#endif |
| 105 |
|
| 106 |
#endif /* GDBSERVER_LINUX_PPC_TDESC_INIT_H */ |