]>
Commit | Line | Data |
---|---|---|
857a1627 | 1 | /* Data for processor capability information. PowerPC version. |
f7a9f785 | 2 | Copyright (C) 2005-2016 Free Software Foundation, Inc. |
857a1627 RM |
3 | This file is part of the GNU C Library. |
4 | ||
5 | The GNU C Library is free software; you can redistribute it and/or | |
6 | modify it under the terms of the GNU Lesser General Public | |
7 | License as published by the Free Software Foundation; either | |
8 | version 2.1 of the License, or (at your option) any later version. | |
9 | ||
10 | The GNU C Library is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | Lesser General Public License for more details. | |
14 | ||
15 | You should have received a copy of the GNU Lesser General Public | |
fac0c5f2 | 16 | License along with the GNU C Library. If not, see |
59ba27a6 | 17 | <http://www.gnu.org/licenses/>. */ |
857a1627 RM |
18 | |
19 | /* This information must be kept in sync with the _DL_HWCAP_COUNT and | |
20 | _DL_PLATFORM_COUNT definitions in procinfo.h. | |
21 | ||
22 | If anything should be added here check whether the size of each string | |
23 | is still ok with the given array size. | |
24 | ||
25 | All the #ifdefs in the definitions are quite irritating but | |
26 | necessary if we want to avoid duplicating the information. There | |
27 | are three different modes: | |
28 | ||
29 | - PROCINFO_DECL is defined. This means we are only interested in | |
30 | declarations. | |
31 | ||
32 | - PROCINFO_DECL is not defined: | |
33 | ||
34 | + if SHARED is defined the file is included in an array | |
35 | initializer. The .element = { ... } syntax is needed. | |
36 | ||
37 | + if SHARED is not defined a normal array initialization is | |
38 | needed. | |
39 | */ | |
40 | ||
41 | #ifndef PROCINFO_CLASS | |
42 | # define PROCINFO_CLASS | |
43 | #endif | |
44 | ||
45 | #if !defined PROCINFO_DECL && defined SHARED | |
46 | ._dl_powerpc_cap_flags | |
47 | #else | |
911569d0 | 48 | PROCINFO_CLASS const char _dl_powerpc_cap_flags[64][10] |
857a1627 RM |
49 | #endif |
50 | #ifndef PROCINFO_DECL | |
51 | = { | |
911569d0 CES |
52 | "ppcle", "true_le", "", "", |
53 | "", "", "archpmu", "vsx", | |
1642331d | 54 | "arch_2_06", "power6x", "dfp", "pa6t", |
4cd3633d UD |
55 | "arch_2_05", "ic_snoop", "smt", "booke", |
56 | "cellbe", "power5+", "power5", "power4", | |
857a1627 RM |
57 | "notb", "efpdouble", "efpsingle", "spe", |
58 | "ucache", "4xxmac", "mmu", "fpu", | |
59 | "altivec", "ppc601", "ppc64", "ppc32", | |
89cd9569 RA |
60 | "", "", "", "", |
61 | "", "", "", "", | |
62 | "", "", "", "", | |
63 | "", "", "", "", | |
64 | "", "", "", "", | |
d2de9ef7 | 65 | "", "", "ieee128", "arch_3_00", |
3c13f28c | 66 | "htm-nosc", "vcrypto", "tar", "isel", |
89cd9569 | 67 | "ebb", "dscr", "htm", "arch_2_07", |
857a1627 RM |
68 | } |
69 | #endif | |
70 | #if !defined SHARED || defined PROCINFO_DECL | |
71 | ; | |
72 | #else | |
73 | , | |
74 | #endif | |
75 | ||
4cd3633d UD |
76 | #if !defined PROCINFO_DECL && defined SHARED |
77 | ._dl_powerpc_platforms | |
78 | #else | |
b1f19b8e | 79 | PROCINFO_CLASS const char _dl_powerpc_platforms[15][12] |
4cd3633d UD |
80 | #endif |
81 | #ifndef PROCINFO_DECL | |
82 | = { | |
594d423a UD |
83 | [PPC_PLATFORM_POWER4] = "power4", |
84 | [PPC_PLATFORM_PPC970] = "ppc970", | |
85 | [PPC_PLATFORM_POWER5] = "power5", | |
86 | [PPC_PLATFORM_POWER5_PLUS] = "power5+", | |
87 | [PPC_PLATFORM_POWER6] = "power6", | |
88 | [PPC_PLATFORM_CELL_BE] = "ppc-cell-be", | |
1642331d | 89 | [PPC_PLATFORM_POWER6X] = "power6x", |
d0b9e94f | 90 | [PPC_PLATFORM_POWER7] = "power7", |
fac0c5f2 RA |
91 | [PPC_PLATFORM_PPCA2] = "ppca2", |
92 | [PPC_PLATFORM_PPC405] = "ppc405", | |
93 | [PPC_PLATFORM_PPC440] = "ppc440", | |
94 | [PPC_PLATFORM_PPC464] = "ppc464", | |
2f063a6e RA |
95 | [PPC_PLATFORM_PPC476] = "ppc476", |
96 | [PPC_PLATFORM_POWER8] = "power8", | |
b1f19b8e | 97 | [PPC_PLATFORM_POWER9] = "power9" |
4cd3633d UD |
98 | } |
99 | #endif | |
100 | #if !defined SHARED || defined PROCINFO_DECL | |
101 | ; | |
102 | #else | |
103 | , | |
104 | #endif | |
105 | ||
857a1627 RM |
106 | #undef PROCINFO_DECL |
107 | #undef PROCINFO_CLASS |