]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/arch/ppc-linux-common.h
[PowerPC] Disable regsets using zero sizes in gdbserver
[thirdparty/binutils-gdb.git] / gdb / arch / ppc-linux-common.h
CommitLineData
bd64614e
PFC
1/* Common target dependent code for GNU/Linux on PPC systems.
2
3 Copyright (C) 2018 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 ARCH_PPC_LINUX_COMMON_H
21#define ARCH_PPC_LINUX_COMMON_H
22
23struct target_desc;
24
25/* Check if the hwcap auxv entry indicates that isa205 is supported. */
26bool ppc_linux_has_isa205 (unsigned long hwcap);
27
28/* Features used to determine the target description. */
29struct ppc_linux_features
30{
31 unsigned int wordsize;
32 bool altivec;
33 bool vsx;
34 bool isa205;
35 bool cell;
36};
37
38/* Base value for ppc_linux_features variables. */
39const struct ppc_linux_features ppc_linux_no_features = {
40 0,
41 false,
42 false,
43 false,
44 false,
45};
46
47/* Return a target description that matches FEATURES. */
48const struct target_desc * ppc_linux_match_description
49(struct ppc_linux_features features);
50
51#endif /* ARCH_PPC_LINUX_COMMON_H */