Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
1da177e4 LT |
2 | * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) |
3 | * | |
4920960f SR |
4 | * Modifications for ppc64: |
5 | * Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com> | |
6 | * | |
1da177e4 LT |
7 | * This program is free software; you can redistribute it and/or |
8 | * modify it under the terms of the GNU General Public License | |
9 | * as published by the Free Software Foundation; either version | |
10 | * 2 of the License, or (at your option) any later version. | |
11 | */ | |
12 | ||
1da177e4 LT |
13 | #include <linux/string.h> |
14 | #include <linux/sched.h> | |
15 | #include <linux/threads.h> | |
16 | #include <linux/init.h> | |
400d2212 KG |
17 | #include <linux/module.h> |
18 | ||
19 | #include <asm/oprofile_impl.h> | |
1da177e4 | 20 | #include <asm/cputable.h> |
42c4aaad | 21 | #include <asm/prom.h> /* for PTRRELOC on ARCH=ppc */ |
7c03d653 | 22 | #include <asm/mmu.h> |
1da177e4 | 23 | |
400d2212 | 24 | struct cpu_spec* cur_cpu_spec = NULL; |
4920960f | 25 | EXPORT_SYMBOL(cur_cpu_spec); |
1da177e4 | 26 | |
9115d134 NL |
27 | /* The platform string corresponding to the real PVR */ |
28 | const char *powerpc_base_platform; | |
29 | ||
4920960f SR |
30 | /* NOTE: |
31 | * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's | |
32 | * the responsibility of the appropriate CPU save/restore functions to | |
33 | * eventually copy these settings over. Those save/restore aren't yet | |
34 | * part of the cputable though. That has to be fixed for both ppc32 | |
35 | * and ppc64 | |
36 | */ | |
b26f100d | 37 | #ifdef CONFIG_PPC32 |
105c31df KG |
38 | extern void __setup_cpu_e200(unsigned long offset, struct cpu_spec* spec); |
39 | extern void __setup_cpu_e500v1(unsigned long offset, struct cpu_spec* spec); | |
40 | extern void __setup_cpu_e500v2(unsigned long offset, struct cpu_spec* spec); | |
41 | extern void __setup_cpu_e500mc(unsigned long offset, struct cpu_spec* spec); | |
8112753b VB |
42 | extern void __setup_cpu_440ep(unsigned long offset, struct cpu_spec* spec); |
43 | extern void __setup_cpu_440epx(unsigned long offset, struct cpu_spec* spec); | |
47c0bd1a | 44 | extern void __setup_cpu_440gx(unsigned long offset, struct cpu_spec* spec); |
340ffd26 | 45 | extern void __setup_cpu_440grx(unsigned long offset, struct cpu_spec* spec); |
47c0bd1a | 46 | extern void __setup_cpu_440spe(unsigned long offset, struct cpu_spec* spec); |
640d17d6 | 47 | extern void __setup_cpu_440x5(unsigned long offset, struct cpu_spec* spec); |
464076a4 | 48 | extern void __setup_cpu_460ex(unsigned long offset, struct cpu_spec* spec); |
939e622c | 49 | extern void __setup_cpu_460gt(unsigned long offset, struct cpu_spec* spec); |
6c712090 | 50 | extern void __setup_cpu_460sx(unsigned long offset, struct cpu_spec *spec); |
400d2212 KG |
51 | extern void __setup_cpu_603(unsigned long offset, struct cpu_spec* spec); |
52 | extern void __setup_cpu_604(unsigned long offset, struct cpu_spec* spec); | |
53 | extern void __setup_cpu_750(unsigned long offset, struct cpu_spec* spec); | |
54 | extern void __setup_cpu_750cx(unsigned long offset, struct cpu_spec* spec); | |
55 | extern void __setup_cpu_750fx(unsigned long offset, struct cpu_spec* spec); | |
56 | extern void __setup_cpu_7400(unsigned long offset, struct cpu_spec* spec); | |
57 | extern void __setup_cpu_7410(unsigned long offset, struct cpu_spec* spec); | |
58 | extern void __setup_cpu_745x(unsigned long offset, struct cpu_spec* spec); | |
4920960f | 59 | #endif /* CONFIG_PPC32 */ |
f39b7a55 | 60 | #ifdef CONFIG_PPC64 |
400d2212 | 61 | extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec); |
5b43d20a | 62 | extern void __setup_cpu_ppc970MP(unsigned long offset, struct cpu_spec* spec); |
1199919b | 63 | extern void __setup_cpu_pa6t(unsigned long offset, struct cpu_spec* spec); |
40d244d6 | 64 | extern void __restore_cpu_pa6t(void); |
f39b7a55 | 65 | extern void __restore_cpu_ppc970(void); |
e952e6c4 MN |
66 | extern void __setup_cpu_power7(unsigned long offset, struct cpu_spec* spec); |
67 | extern void __restore_cpu_power7(void); | |
f39b7a55 | 68 | #endif /* CONFIG_PPC64 */ |
1da177e4 | 69 | |
1da177e4 LT |
70 | /* This table only contains "desktop" CPUs, it need to be filled with embedded |
71 | * ones as well... | |
72 | */ | |
4920960f SR |
73 | #define COMMON_USER (PPC_FEATURE_32 | PPC_FEATURE_HAS_FPU | \ |
74 | PPC_FEATURE_HAS_MMU) | |
75 | #define COMMON_USER_PPC64 (COMMON_USER | PPC_FEATURE_64) | |
a7ddc5e8 | 76 | #define COMMON_USER_POWER4 (COMMON_USER_PPC64 | PPC_FEATURE_POWER4) |
aa5cb021 BH |
77 | #define COMMON_USER_POWER5 (COMMON_USER_PPC64 | PPC_FEATURE_POWER5 |\ |
78 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP) | |
79 | #define COMMON_USER_POWER5_PLUS (COMMON_USER_PPC64 | PPC_FEATURE_POWER5_PLUS|\ | |
80 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP) | |
03054d51 | 81 | #define COMMON_USER_POWER6 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_05 |\ |
fab5db97 | 82 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \ |
0f473314 NL |
83 | PPC_FEATURE_TRUE_LE | \ |
84 | PPC_FEATURE_PSERIES_PERFMON_COMPAT) | |
e952e6c4 MN |
85 | #define COMMON_USER_POWER7 (COMMON_USER_PPC64 | PPC_FEATURE_ARCH_2_06 |\ |
86 | PPC_FEATURE_SMT | PPC_FEATURE_ICACHE_SNOOP | \ | |
0f473314 NL |
87 | PPC_FEATURE_TRUE_LE | \ |
88 | PPC_FEATURE_PSERIES_PERFMON_COMPAT) | |
b3ebd1d8 OJ |
89 | #define COMMON_USER_PA6T (COMMON_USER_PPC64 | PPC_FEATURE_PA6T |\ |
90 | PPC_FEATURE_TRUE_LE | \ | |
91 | PPC_FEATURE_HAS_ALTIVEC_COMP) | |
80f15dc7 PM |
92 | #define COMMON_USER_BOOKE (PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU | \ |
93 | PPC_FEATURE_BOOKE) | |
1da177e4 | 94 | |
87a72f9e | 95 | static struct cpu_spec __initdata cpu_specs[] = { |
4920960f SR |
96 | #ifdef CONFIG_PPC64 |
97 | { /* Power3 */ | |
98 | .pvr_mask = 0xffff0000, | |
99 | .pvr_value = 0x00400000, | |
100 | .cpu_name = "POWER3 (630)", | |
101 | .cpu_features = CPU_FTRS_POWER3, | |
fab5db97 | 102 | .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE, |
7c03d653 | 103 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
104 | .icache_bsize = 128, |
105 | .dcache_bsize = 128, | |
106 | .num_pmcs = 8, | |
1bd2e5ae | 107 | .pmc_type = PPC_PMC_IBM, |
4920960f | 108 | .oprofile_cpu_type = "ppc64/power3", |
7a45fb19 | 109 | .oprofile_type = PPC_OPROFILE_RS64, |
47c0bd1a | 110 | .machine_check = machine_check_generic, |
80f15dc7 | 111 | .platform = "power3", |
4920960f SR |
112 | }, |
113 | { /* Power3+ */ | |
114 | .pvr_mask = 0xffff0000, | |
115 | .pvr_value = 0x00410000, | |
116 | .cpu_name = "POWER3 (630+)", | |
117 | .cpu_features = CPU_FTRS_POWER3, | |
fab5db97 | 118 | .cpu_user_features = COMMON_USER_PPC64|PPC_FEATURE_PPC_LE, |
7c03d653 | 119 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
120 | .icache_bsize = 128, |
121 | .dcache_bsize = 128, | |
122 | .num_pmcs = 8, | |
1bd2e5ae | 123 | .pmc_type = PPC_PMC_IBM, |
4920960f | 124 | .oprofile_cpu_type = "ppc64/power3", |
7a45fb19 | 125 | .oprofile_type = PPC_OPROFILE_RS64, |
47c0bd1a | 126 | .machine_check = machine_check_generic, |
80f15dc7 | 127 | .platform = "power3", |
4920960f SR |
128 | }, |
129 | { /* Northstar */ | |
130 | .pvr_mask = 0xffff0000, | |
131 | .pvr_value = 0x00330000, | |
132 | .cpu_name = "RS64-II (northstar)", | |
133 | .cpu_features = CPU_FTRS_RS64, | |
134 | .cpu_user_features = COMMON_USER_PPC64, | |
7c03d653 | 135 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
136 | .icache_bsize = 128, |
137 | .dcache_bsize = 128, | |
138 | .num_pmcs = 8, | |
1bd2e5ae | 139 | .pmc_type = PPC_PMC_IBM, |
4920960f | 140 | .oprofile_cpu_type = "ppc64/rs64", |
7a45fb19 | 141 | .oprofile_type = PPC_OPROFILE_RS64, |
47c0bd1a | 142 | .machine_check = machine_check_generic, |
80f15dc7 | 143 | .platform = "rs64", |
4920960f SR |
144 | }, |
145 | { /* Pulsar */ | |
146 | .pvr_mask = 0xffff0000, | |
147 | .pvr_value = 0x00340000, | |
148 | .cpu_name = "RS64-III (pulsar)", | |
149 | .cpu_features = CPU_FTRS_RS64, | |
150 | .cpu_user_features = COMMON_USER_PPC64, | |
7c03d653 | 151 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
152 | .icache_bsize = 128, |
153 | .dcache_bsize = 128, | |
154 | .num_pmcs = 8, | |
1bd2e5ae | 155 | .pmc_type = PPC_PMC_IBM, |
4920960f | 156 | .oprofile_cpu_type = "ppc64/rs64", |
7a45fb19 | 157 | .oprofile_type = PPC_OPROFILE_RS64, |
47c0bd1a | 158 | .machine_check = machine_check_generic, |
80f15dc7 | 159 | .platform = "rs64", |
4920960f SR |
160 | }, |
161 | { /* I-star */ | |
162 | .pvr_mask = 0xffff0000, | |
163 | .pvr_value = 0x00360000, | |
164 | .cpu_name = "RS64-III (icestar)", | |
165 | .cpu_features = CPU_FTRS_RS64, | |
166 | .cpu_user_features = COMMON_USER_PPC64, | |
7c03d653 | 167 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
168 | .icache_bsize = 128, |
169 | .dcache_bsize = 128, | |
170 | .num_pmcs = 8, | |
1bd2e5ae | 171 | .pmc_type = PPC_PMC_IBM, |
4920960f | 172 | .oprofile_cpu_type = "ppc64/rs64", |
7a45fb19 | 173 | .oprofile_type = PPC_OPROFILE_RS64, |
47c0bd1a | 174 | .machine_check = machine_check_generic, |
80f15dc7 | 175 | .platform = "rs64", |
4920960f SR |
176 | }, |
177 | { /* S-star */ | |
178 | .pvr_mask = 0xffff0000, | |
179 | .pvr_value = 0x00370000, | |
180 | .cpu_name = "RS64-IV (sstar)", | |
181 | .cpu_features = CPU_FTRS_RS64, | |
182 | .cpu_user_features = COMMON_USER_PPC64, | |
7c03d653 | 183 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
184 | .icache_bsize = 128, |
185 | .dcache_bsize = 128, | |
186 | .num_pmcs = 8, | |
1bd2e5ae | 187 | .pmc_type = PPC_PMC_IBM, |
4920960f | 188 | .oprofile_cpu_type = "ppc64/rs64", |
7a45fb19 | 189 | .oprofile_type = PPC_OPROFILE_RS64, |
47c0bd1a | 190 | .machine_check = machine_check_generic, |
80f15dc7 | 191 | .platform = "rs64", |
4920960f SR |
192 | }, |
193 | { /* Power4 */ | |
194 | .pvr_mask = 0xffff0000, | |
195 | .pvr_value = 0x00350000, | |
196 | .cpu_name = "POWER4 (gp)", | |
197 | .cpu_features = CPU_FTRS_POWER4, | |
a7ddc5e8 | 198 | .cpu_user_features = COMMON_USER_POWER4, |
7c03d653 | 199 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
200 | .icache_bsize = 128, |
201 | .dcache_bsize = 128, | |
202 | .num_pmcs = 8, | |
1bd2e5ae | 203 | .pmc_type = PPC_PMC_IBM, |
4920960f | 204 | .oprofile_cpu_type = "ppc64/power4", |
7a45fb19 | 205 | .oprofile_type = PPC_OPROFILE_POWER4, |
47c0bd1a | 206 | .machine_check = machine_check_generic, |
80f15dc7 | 207 | .platform = "power4", |
4920960f SR |
208 | }, |
209 | { /* Power4+ */ | |
210 | .pvr_mask = 0xffff0000, | |
211 | .pvr_value = 0x00380000, | |
212 | .cpu_name = "POWER4+ (gq)", | |
213 | .cpu_features = CPU_FTRS_POWER4, | |
a7ddc5e8 | 214 | .cpu_user_features = COMMON_USER_POWER4, |
7c03d653 | 215 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
216 | .icache_bsize = 128, |
217 | .dcache_bsize = 128, | |
218 | .num_pmcs = 8, | |
1bd2e5ae | 219 | .pmc_type = PPC_PMC_IBM, |
4920960f | 220 | .oprofile_cpu_type = "ppc64/power4", |
7a45fb19 | 221 | .oprofile_type = PPC_OPROFILE_POWER4, |
47c0bd1a | 222 | .machine_check = machine_check_generic, |
80f15dc7 | 223 | .platform = "power4", |
4920960f SR |
224 | }, |
225 | { /* PPC970 */ | |
226 | .pvr_mask = 0xffff0000, | |
227 | .pvr_value = 0x00390000, | |
228 | .cpu_name = "PPC970", | |
229 | .cpu_features = CPU_FTRS_PPC970, | |
a7ddc5e8 | 230 | .cpu_user_features = COMMON_USER_POWER4 | |
4920960f | 231 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
7c03d653 | 232 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
233 | .icache_bsize = 128, |
234 | .dcache_bsize = 128, | |
235 | .num_pmcs = 8, | |
1bd2e5ae | 236 | .pmc_type = PPC_PMC_IBM, |
4920960f | 237 | .cpu_setup = __setup_cpu_ppc970, |
f39b7a55 | 238 | .cpu_restore = __restore_cpu_ppc970, |
4920960f | 239 | .oprofile_cpu_type = "ppc64/970", |
7a45fb19 | 240 | .oprofile_type = PPC_OPROFILE_POWER4, |
47c0bd1a | 241 | .machine_check = machine_check_generic, |
80f15dc7 | 242 | .platform = "ppc970", |
4920960f | 243 | }, |
4920960f SR |
244 | { /* PPC970FX */ |
245 | .pvr_mask = 0xffff0000, | |
246 | .pvr_value = 0x003c0000, | |
247 | .cpu_name = "PPC970FX", | |
4920960f | 248 | .cpu_features = CPU_FTRS_PPC970, |
a7ddc5e8 | 249 | .cpu_user_features = COMMON_USER_POWER4 | |
4920960f | 250 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
7c03d653 | 251 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
252 | .icache_bsize = 128, |
253 | .dcache_bsize = 128, | |
254 | .num_pmcs = 8, | |
1bd2e5ae | 255 | .pmc_type = PPC_PMC_IBM, |
4920960f | 256 | .cpu_setup = __setup_cpu_ppc970, |
f39b7a55 | 257 | .cpu_restore = __restore_cpu_ppc970, |
4920960f | 258 | .oprofile_cpu_type = "ppc64/970", |
7a45fb19 | 259 | .oprofile_type = PPC_OPROFILE_POWER4, |
47c0bd1a | 260 | .machine_check = machine_check_generic, |
80f15dc7 | 261 | .platform = "ppc970", |
3546e811 OJ |
262 | }, |
263 | { /* PPC970MP DD1.0 - no DEEPNAP, use regular 970 init */ | |
264 | .pvr_mask = 0xffffffff, | |
265 | .pvr_value = 0x00440100, | |
266 | .cpu_name = "PPC970MP", | |
267 | .cpu_features = CPU_FTRS_PPC970, | |
268 | .cpu_user_features = COMMON_USER_POWER4 | | |
269 | PPC_FEATURE_HAS_ALTIVEC_COMP, | |
7c03d653 | 270 | .mmu_features = MMU_FTR_HPTE_TABLE, |
3546e811 OJ |
271 | .icache_bsize = 128, |
272 | .dcache_bsize = 128, | |
273 | .num_pmcs = 8, | |
2fae4985 | 274 | .pmc_type = PPC_PMC_IBM, |
3546e811 OJ |
275 | .cpu_setup = __setup_cpu_ppc970, |
276 | .cpu_restore = __restore_cpu_ppc970, | |
277 | .oprofile_cpu_type = "ppc64/970MP", | |
278 | .oprofile_type = PPC_OPROFILE_POWER4, | |
47c0bd1a | 279 | .machine_check = machine_check_generic, |
3546e811 | 280 | .platform = "ppc970", |
4920960f | 281 | }, |
4920960f SR |
282 | { /* PPC970MP */ |
283 | .pvr_mask = 0xffff0000, | |
284 | .pvr_value = 0x00440000, | |
285 | .cpu_name = "PPC970MP", | |
286 | .cpu_features = CPU_FTRS_PPC970, | |
a7ddc5e8 | 287 | .cpu_user_features = COMMON_USER_POWER4 | |
4920960f | 288 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
7c03d653 | 289 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
290 | .icache_bsize = 128, |
291 | .dcache_bsize = 128, | |
87af41be | 292 | .num_pmcs = 8, |
2fae4985 | 293 | .pmc_type = PPC_PMC_IBM, |
5b43d20a | 294 | .cpu_setup = __setup_cpu_ppc970MP, |
f39b7a55 | 295 | .cpu_restore = __restore_cpu_ppc970, |
fecb352f | 296 | .oprofile_cpu_type = "ppc64/970MP", |
7a45fb19 | 297 | .oprofile_type = PPC_OPROFILE_POWER4, |
47c0bd1a | 298 | .machine_check = machine_check_generic, |
80f15dc7 | 299 | .platform = "ppc970", |
4920960f | 300 | }, |
362ff7b2 JM |
301 | { /* PPC970GX */ |
302 | .pvr_mask = 0xffff0000, | |
303 | .pvr_value = 0x00450000, | |
304 | .cpu_name = "PPC970GX", | |
305 | .cpu_features = CPU_FTRS_PPC970, | |
306 | .cpu_user_features = COMMON_USER_POWER4 | | |
307 | PPC_FEATURE_HAS_ALTIVEC_COMP, | |
7c03d653 | 308 | .mmu_features = MMU_FTR_HPTE_TABLE, |
362ff7b2 JM |
309 | .icache_bsize = 128, |
310 | .dcache_bsize = 128, | |
311 | .num_pmcs = 8, | |
1bd2e5ae | 312 | .pmc_type = PPC_PMC_IBM, |
362ff7b2 JM |
313 | .cpu_setup = __setup_cpu_ppc970, |
314 | .oprofile_cpu_type = "ppc64/970", | |
315 | .oprofile_type = PPC_OPROFILE_POWER4, | |
47c0bd1a | 316 | .machine_check = machine_check_generic, |
362ff7b2 JM |
317 | .platform = "ppc970", |
318 | }, | |
3c726f8d | 319 | { /* Power5 GR */ |
4920960f SR |
320 | .pvr_mask = 0xffff0000, |
321 | .pvr_value = 0x003a0000, | |
322 | .cpu_name = "POWER5 (gr)", | |
323 | .cpu_features = CPU_FTRS_POWER5, | |
a7ddc5e8 | 324 | .cpu_user_features = COMMON_USER_POWER5, |
7c03d653 | 325 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
326 | .icache_bsize = 128, |
327 | .dcache_bsize = 128, | |
328 | .num_pmcs = 6, | |
1bd2e5ae | 329 | .pmc_type = PPC_PMC_IBM, |
4920960f | 330 | .oprofile_cpu_type = "ppc64/power5", |
7a45fb19 | 331 | .oprofile_type = PPC_OPROFILE_POWER4, |
e78dbc80 MN |
332 | /* SIHV / SIPR bits are implemented on POWER4+ (GQ) |
333 | * and above but only works on POWER5 and above | |
334 | */ | |
335 | .oprofile_mmcra_sihv = MMCRA_SIHV, | |
336 | .oprofile_mmcra_sipr = MMCRA_SIPR, | |
47c0bd1a | 337 | .machine_check = machine_check_generic, |
80f15dc7 | 338 | .platform = "power5", |
4920960f | 339 | }, |
31a12cec MW |
340 | { /* Power5++ */ |
341 | .pvr_mask = 0xffffff00, | |
342 | .pvr_value = 0x003b0300, | |
343 | .cpu_name = "POWER5+ (gs)", | |
344 | .cpu_features = CPU_FTRS_POWER5, | |
345 | .cpu_user_features = COMMON_USER_POWER5_PLUS, | |
7c03d653 | 346 | .mmu_features = MMU_FTR_HPTE_TABLE, |
31a12cec MW |
347 | .icache_bsize = 128, |
348 | .dcache_bsize = 128, | |
349 | .num_pmcs = 6, | |
350 | .oprofile_cpu_type = "ppc64/power5++", | |
351 | .oprofile_type = PPC_OPROFILE_POWER4, | |
352 | .oprofile_mmcra_sihv = MMCRA_SIHV, | |
353 | .oprofile_mmcra_sipr = MMCRA_SIPR, | |
47c0bd1a | 354 | .machine_check = machine_check_generic, |
31a12cec MW |
355 | .platform = "power5+", |
356 | }, | |
3c726f8d | 357 | { /* Power5 GS */ |
4920960f SR |
358 | .pvr_mask = 0xffff0000, |
359 | .pvr_value = 0x003b0000, | |
834608f7 | 360 | .cpu_name = "POWER5+ (gs)", |
4920960f | 361 | .cpu_features = CPU_FTRS_POWER5, |
a7ddc5e8 | 362 | .cpu_user_features = COMMON_USER_POWER5_PLUS, |
7c03d653 | 363 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
364 | .icache_bsize = 128, |
365 | .dcache_bsize = 128, | |
366 | .num_pmcs = 6, | |
1bd2e5ae | 367 | .pmc_type = PPC_PMC_IBM, |
834608f7 | 368 | .oprofile_cpu_type = "ppc64/power5+", |
7a45fb19 | 369 | .oprofile_type = PPC_OPROFILE_POWER4, |
e78dbc80 MN |
370 | .oprofile_mmcra_sihv = MMCRA_SIHV, |
371 | .oprofile_mmcra_sipr = MMCRA_SIPR, | |
47c0bd1a | 372 | .machine_check = machine_check_generic, |
80f15dc7 | 373 | .platform = "power5+", |
4920960f | 374 | }, |
974a76f5 PM |
375 | { /* POWER6 in P5+ mode; 2.04-compliant processor */ |
376 | .pvr_mask = 0xffffffff, | |
377 | .pvr_value = 0x0f000001, | |
378 | .cpu_name = "POWER5+", | |
379 | .cpu_features = CPU_FTRS_POWER5, | |
380 | .cpu_user_features = COMMON_USER_POWER5_PLUS, | |
7c03d653 | 381 | .mmu_features = MMU_FTR_HPTE_TABLE, |
974a76f5 PM |
382 | .icache_bsize = 128, |
383 | .dcache_bsize = 128, | |
47c0bd1a | 384 | .machine_check = machine_check_generic, |
79af6c49 MW |
385 | .oprofile_cpu_type = "ppc64/ibm-compat-v1", |
386 | .oprofile_type = PPC_OPROFILE_POWER4, | |
974a76f5 PM |
387 | .platform = "power5+", |
388 | }, | |
03054d51 AB |
389 | { /* Power6 */ |
390 | .pvr_mask = 0xffff0000, | |
391 | .pvr_value = 0x003e0000, | |
974a76f5 PM |
392 | .cpu_name = "POWER6 (raw)", |
393 | .cpu_features = CPU_FTRS_POWER6, | |
394 | .cpu_user_features = COMMON_USER_POWER6 | | |
395 | PPC_FEATURE_POWER6_EXT, | |
7c03d653 | 396 | .mmu_features = MMU_FTR_HPTE_TABLE, |
974a76f5 PM |
397 | .icache_bsize = 128, |
398 | .dcache_bsize = 128, | |
399 | .num_pmcs = 6, | |
2fae4985 | 400 | .pmc_type = PPC_PMC_IBM, |
974a76f5 PM |
401 | .oprofile_cpu_type = "ppc64/power6", |
402 | .oprofile_type = PPC_OPROFILE_POWER4, | |
403 | .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV, | |
404 | .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR, | |
405 | .oprofile_mmcra_clear = POWER6_MMCRA_THRM | | |
406 | POWER6_MMCRA_OTHER, | |
47c0bd1a | 407 | .machine_check = machine_check_generic, |
974a76f5 PM |
408 | .platform = "power6x", |
409 | }, | |
410 | { /* 2.05-compliant processor, i.e. Power6 "architected" mode */ | |
411 | .pvr_mask = 0xffffffff, | |
412 | .pvr_value = 0x0f000002, | |
413 | .cpu_name = "POWER6 (architected)", | |
03054d51 AB |
414 | .cpu_features = CPU_FTRS_POWER6, |
415 | .cpu_user_features = COMMON_USER_POWER6, | |
7c03d653 | 416 | .mmu_features = MMU_FTR_HPTE_TABLE, |
03054d51 AB |
417 | .icache_bsize = 128, |
418 | .dcache_bsize = 128, | |
47c0bd1a | 419 | .machine_check = machine_check_generic, |
79af6c49 MW |
420 | .oprofile_cpu_type = "ppc64/ibm-compat-v1", |
421 | .oprofile_type = PPC_OPROFILE_POWER4, | |
03054d51 AB |
422 | .platform = "power6", |
423 | }, | |
635f5a63 JS |
424 | { /* 2.06-compliant processor, i.e. Power7 "architected" mode */ |
425 | .pvr_mask = 0xffffffff, | |
426 | .pvr_value = 0x0f000003, | |
427 | .cpu_name = "POWER7 (architected)", | |
428 | .cpu_features = CPU_FTRS_POWER7, | |
429 | .cpu_user_features = COMMON_USER_POWER7, | |
60dbf438 MM |
430 | .mmu_features = MMU_FTR_HPTE_TABLE | |
431 | MMU_FTR_TLBIE_206, | |
635f5a63 JS |
432 | .icache_bsize = 128, |
433 | .dcache_bsize = 128, | |
434 | .machine_check = machine_check_generic, | |
79af6c49 MW |
435 | .oprofile_type = PPC_OPROFILE_POWER4, |
436 | .oprofile_cpu_type = "ppc64/ibm-compat-v1", | |
635f5a63 JS |
437 | .platform = "power7", |
438 | }, | |
e952e6c4 MN |
439 | { /* Power7 */ |
440 | .pvr_mask = 0xffff0000, | |
441 | .pvr_value = 0x003f0000, | |
635f5a63 | 442 | .cpu_name = "POWER7 (raw)", |
e952e6c4 MN |
443 | .cpu_features = CPU_FTRS_POWER7, |
444 | .cpu_user_features = COMMON_USER_POWER7, | |
60dbf438 MM |
445 | .mmu_features = MMU_FTR_HPTE_TABLE | |
446 | MMU_FTR_TLBIE_206, | |
e952e6c4 MN |
447 | .icache_bsize = 128, |
448 | .dcache_bsize = 128, | |
449 | .num_pmcs = 6, | |
450 | .pmc_type = PPC_PMC_IBM, | |
451 | .cpu_setup = __setup_cpu_power7, | |
452 | .cpu_restore = __restore_cpu_power7, | |
453 | .oprofile_cpu_type = "ppc64/power7", | |
454 | .oprofile_type = PPC_OPROFILE_POWER4, | |
455 | .oprofile_mmcra_sihv = POWER6_MMCRA_SIHV, | |
456 | .oprofile_mmcra_sipr = POWER6_MMCRA_SIPR, | |
457 | .oprofile_mmcra_clear = POWER6_MMCRA_THRM | | |
458 | POWER6_MMCRA_OTHER, | |
459 | .platform = "power7", | |
460 | }, | |
c902be71 | 461 | { /* Cell Broadband Engine */ |
4920960f SR |
462 | .pvr_mask = 0xffff0000, |
463 | .pvr_value = 0x00700000, | |
464 | .cpu_name = "Cell Broadband Engine", | |
465 | .cpu_features = CPU_FTRS_CELL, | |
466 | .cpu_user_features = COMMON_USER_PPC64 | | |
aa5cb021 BH |
467 | PPC_FEATURE_CELL | PPC_FEATURE_HAS_ALTIVEC_COMP | |
468 | PPC_FEATURE_SMT, | |
7c03d653 | 469 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
470 | .icache_bsize = 128, |
471 | .dcache_bsize = 128, | |
18f2190d | 472 | .num_pmcs = 4, |
1bd2e5ae | 473 | .pmc_type = PPC_PMC_IBM, |
18f2190d MJ |
474 | .oprofile_cpu_type = "ppc64/cell-be", |
475 | .oprofile_type = PPC_OPROFILE_CELL, | |
47c0bd1a | 476 | .machine_check = machine_check_generic, |
80f15dc7 | 477 | .platform = "ppc-cell-be", |
4920960f | 478 | }, |
b3ebd1d8 OJ |
479 | { /* PA Semi PA6T */ |
480 | .pvr_mask = 0x7fff0000, | |
481 | .pvr_value = 0x00900000, | |
482 | .cpu_name = "PA6T", | |
483 | .cpu_features = CPU_FTRS_PA6T, | |
484 | .cpu_user_features = COMMON_USER_PA6T, | |
7c03d653 | 485 | .mmu_features = MMU_FTR_HPTE_TABLE, |
b3ebd1d8 OJ |
486 | .icache_bsize = 64, |
487 | .dcache_bsize = 64, | |
488 | .num_pmcs = 6, | |
1bd2e5ae | 489 | .pmc_type = PPC_PMC_PA6T, |
1199919b OJ |
490 | .cpu_setup = __setup_cpu_pa6t, |
491 | .cpu_restore = __restore_cpu_pa6t, | |
25fc530e OJ |
492 | .oprofile_cpu_type = "ppc64/pa6t", |
493 | .oprofile_type = PPC_OPROFILE_PA6T, | |
47c0bd1a | 494 | .machine_check = machine_check_generic, |
b3ebd1d8 OJ |
495 | .platform = "pa6t", |
496 | }, | |
4920960f SR |
497 | { /* default match */ |
498 | .pvr_mask = 0x00000000, | |
499 | .pvr_value = 0x00000000, | |
500 | .cpu_name = "POWER4 (compatible)", | |
501 | .cpu_features = CPU_FTRS_COMPATIBLE, | |
502 | .cpu_user_features = COMMON_USER_PPC64, | |
7c03d653 | 503 | .mmu_features = MMU_FTR_HPTE_TABLE, |
4920960f SR |
504 | .icache_bsize = 128, |
505 | .dcache_bsize = 128, | |
506 | .num_pmcs = 6, | |
1bd2e5ae | 507 | .pmc_type = PPC_PMC_IBM, |
47c0bd1a | 508 | .machine_check = machine_check_generic, |
80f15dc7 | 509 | .platform = "power4", |
4920960f SR |
510 | } |
511 | #endif /* CONFIG_PPC64 */ | |
512 | #ifdef CONFIG_PPC32 | |
1da177e4 | 513 | #if CLASSIC_PPC |
4920960f | 514 | { /* 601 */ |
1da177e4 LT |
515 | .pvr_mask = 0xffff0000, |
516 | .pvr_value = 0x00010000, | |
517 | .cpu_name = "601", | |
10b35d99 | 518 | .cpu_features = CPU_FTRS_PPC601, |
4920960f | 519 | .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR | |
d8e998c5 | 520 | PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB, |
7c03d653 | 521 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
522 | .icache_bsize = 32, |
523 | .dcache_bsize = 32, | |
47c0bd1a | 524 | .machine_check = machine_check_generic, |
80f15dc7 | 525 | .platform = "ppc601", |
1da177e4 LT |
526 | }, |
527 | { /* 603 */ | |
528 | .pvr_mask = 0xffff0000, | |
529 | .pvr_value = 0x00030000, | |
530 | .cpu_name = "603", | |
10b35d99 | 531 | .cpu_features = CPU_FTRS_603, |
fab5db97 | 532 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 533 | .mmu_features = 0, |
1da177e4 LT |
534 | .icache_bsize = 32, |
535 | .dcache_bsize = 32, | |
80f15dc7 | 536 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 537 | .machine_check = machine_check_generic, |
80f15dc7 | 538 | .platform = "ppc603", |
1da177e4 LT |
539 | }, |
540 | { /* 603e */ | |
541 | .pvr_mask = 0xffff0000, | |
542 | .pvr_value = 0x00060000, | |
543 | .cpu_name = "603e", | |
10b35d99 | 544 | .cpu_features = CPU_FTRS_603, |
fab5db97 | 545 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 546 | .mmu_features = 0, |
1da177e4 LT |
547 | .icache_bsize = 32, |
548 | .dcache_bsize = 32, | |
80f15dc7 | 549 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 550 | .machine_check = machine_check_generic, |
80f15dc7 | 551 | .platform = "ppc603", |
1da177e4 LT |
552 | }, |
553 | { /* 603ev */ | |
554 | .pvr_mask = 0xffff0000, | |
555 | .pvr_value = 0x00070000, | |
556 | .cpu_name = "603ev", | |
10b35d99 | 557 | .cpu_features = CPU_FTRS_603, |
fab5db97 | 558 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 559 | .mmu_features = 0, |
1da177e4 LT |
560 | .icache_bsize = 32, |
561 | .dcache_bsize = 32, | |
80f15dc7 | 562 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 563 | .machine_check = machine_check_generic, |
80f15dc7 | 564 | .platform = "ppc603", |
1da177e4 LT |
565 | }, |
566 | { /* 604 */ | |
567 | .pvr_mask = 0xffff0000, | |
568 | .pvr_value = 0x00040000, | |
569 | .cpu_name = "604", | |
10b35d99 | 570 | .cpu_features = CPU_FTRS_604, |
fab5db97 | 571 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 572 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
573 | .icache_bsize = 32, |
574 | .dcache_bsize = 32, | |
575 | .num_pmcs = 2, | |
80f15dc7 | 576 | .cpu_setup = __setup_cpu_604, |
47c0bd1a | 577 | .machine_check = machine_check_generic, |
80f15dc7 | 578 | .platform = "ppc604", |
1da177e4 LT |
579 | }, |
580 | { /* 604e */ | |
581 | .pvr_mask = 0xfffff000, | |
582 | .pvr_value = 0x00090000, | |
583 | .cpu_name = "604e", | |
10b35d99 | 584 | .cpu_features = CPU_FTRS_604, |
fab5db97 | 585 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 586 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
587 | .icache_bsize = 32, |
588 | .dcache_bsize = 32, | |
589 | .num_pmcs = 4, | |
80f15dc7 | 590 | .cpu_setup = __setup_cpu_604, |
47c0bd1a | 591 | .machine_check = machine_check_generic, |
80f15dc7 | 592 | .platform = "ppc604", |
1da177e4 LT |
593 | }, |
594 | { /* 604r */ | |
595 | .pvr_mask = 0xffff0000, | |
596 | .pvr_value = 0x00090000, | |
597 | .cpu_name = "604r", | |
10b35d99 | 598 | .cpu_features = CPU_FTRS_604, |
fab5db97 | 599 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 600 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
601 | .icache_bsize = 32, |
602 | .dcache_bsize = 32, | |
603 | .num_pmcs = 4, | |
80f15dc7 | 604 | .cpu_setup = __setup_cpu_604, |
47c0bd1a | 605 | .machine_check = machine_check_generic, |
80f15dc7 | 606 | .platform = "ppc604", |
1da177e4 LT |
607 | }, |
608 | { /* 604ev */ | |
609 | .pvr_mask = 0xffff0000, | |
610 | .pvr_value = 0x000a0000, | |
611 | .cpu_name = "604ev", | |
10b35d99 | 612 | .cpu_features = CPU_FTRS_604, |
fab5db97 | 613 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 614 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
615 | .icache_bsize = 32, |
616 | .dcache_bsize = 32, | |
617 | .num_pmcs = 4, | |
80f15dc7 | 618 | .cpu_setup = __setup_cpu_604, |
47c0bd1a | 619 | .machine_check = machine_check_generic, |
80f15dc7 | 620 | .platform = "ppc604", |
1da177e4 LT |
621 | }, |
622 | { /* 740/750 (0x4202, don't support TAU ?) */ | |
623 | .pvr_mask = 0xffffffff, | |
624 | .pvr_value = 0x00084202, | |
625 | .cpu_name = "740/750", | |
10b35d99 | 626 | .cpu_features = CPU_FTRS_740_NOTAU, |
fab5db97 | 627 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 628 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
629 | .icache_bsize = 32, |
630 | .dcache_bsize = 32, | |
631 | .num_pmcs = 4, | |
80f15dc7 | 632 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 633 | .machine_check = machine_check_generic, |
80f15dc7 | 634 | .platform = "ppc750", |
1da177e4 | 635 | }, |
1da177e4 LT |
636 | { /* 750CX (80100 and 8010x?) */ |
637 | .pvr_mask = 0xfffffff0, | |
638 | .pvr_value = 0x00080100, | |
639 | .cpu_name = "750CX", | |
10b35d99 | 640 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 641 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 642 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
643 | .icache_bsize = 32, |
644 | .dcache_bsize = 32, | |
645 | .num_pmcs = 4, | |
80f15dc7 | 646 | .cpu_setup = __setup_cpu_750cx, |
47c0bd1a | 647 | .machine_check = machine_check_generic, |
80f15dc7 | 648 | .platform = "ppc750", |
1da177e4 LT |
649 | }, |
650 | { /* 750CX (82201 and 82202) */ | |
651 | .pvr_mask = 0xfffffff0, | |
652 | .pvr_value = 0x00082200, | |
653 | .cpu_name = "750CX", | |
10b35d99 | 654 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 655 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 656 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
657 | .icache_bsize = 32, |
658 | .dcache_bsize = 32, | |
659 | .num_pmcs = 4, | |
b950bdd0 | 660 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 661 | .cpu_setup = __setup_cpu_750cx, |
47c0bd1a | 662 | .machine_check = machine_check_generic, |
80f15dc7 | 663 | .platform = "ppc750", |
1da177e4 LT |
664 | }, |
665 | { /* 750CXe (82214) */ | |
666 | .pvr_mask = 0xfffffff0, | |
667 | .pvr_value = 0x00082210, | |
668 | .cpu_name = "750CXe", | |
10b35d99 | 669 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 670 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 671 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
672 | .icache_bsize = 32, |
673 | .dcache_bsize = 32, | |
674 | .num_pmcs = 4, | |
b950bdd0 | 675 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 676 | .cpu_setup = __setup_cpu_750cx, |
47c0bd1a | 677 | .machine_check = machine_check_generic, |
80f15dc7 | 678 | .platform = "ppc750", |
1da177e4 | 679 | }, |
7c31625a AO |
680 | { /* 750CXe "Gekko" (83214) */ |
681 | .pvr_mask = 0xffffffff, | |
682 | .pvr_value = 0x00083214, | |
683 | .cpu_name = "750CXe", | |
10b35d99 | 684 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 685 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 686 | .mmu_features = MMU_FTR_HPTE_TABLE, |
7c31625a AO |
687 | .icache_bsize = 32, |
688 | .dcache_bsize = 32, | |
689 | .num_pmcs = 4, | |
b950bdd0 | 690 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 691 | .cpu_setup = __setup_cpu_750cx, |
47c0bd1a | 692 | .machine_check = machine_check_generic, |
80f15dc7 | 693 | .platform = "ppc750", |
7c31625a | 694 | }, |
cfbff8a3 JM |
695 | { /* 750CL */ |
696 | .pvr_mask = 0xfffff0f0, | |
697 | .pvr_value = 0x00087010, | |
698 | .cpu_name = "750CL", | |
a14c4508 | 699 | .cpu_features = CPU_FTRS_750CL, |
cfbff8a3 | 700 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 701 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
cfbff8a3 JM |
702 | .icache_bsize = 32, |
703 | .dcache_bsize = 32, | |
704 | .num_pmcs = 4, | |
b950bdd0 | 705 | .pmc_type = PPC_PMC_IBM, |
a14c4508 | 706 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 707 | .machine_check = machine_check_generic, |
cfbff8a3 JM |
708 | .platform = "ppc750", |
709 | }, | |
ac1ff047 AO |
710 | { /* 745/755 */ |
711 | .pvr_mask = 0xfffff000, | |
712 | .pvr_value = 0x00083000, | |
713 | .cpu_name = "745/755", | |
10b35d99 | 714 | .cpu_features = CPU_FTRS_750, |
fab5db97 | 715 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 716 | .mmu_features = MMU_FTR_HPTE_TABLE, |
ac1ff047 AO |
717 | .icache_bsize = 32, |
718 | .dcache_bsize = 32, | |
719 | .num_pmcs = 4, | |
b950bdd0 | 720 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 721 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 722 | .machine_check = machine_check_generic, |
80f15dc7 | 723 | .platform = "ppc750", |
ac1ff047 | 724 | }, |
1da177e4 LT |
725 | { /* 750FX rev 1.x */ |
726 | .pvr_mask = 0xffffff00, | |
727 | .pvr_value = 0x70000100, | |
728 | .cpu_name = "750FX", | |
10b35d99 | 729 | .cpu_features = CPU_FTRS_750FX1, |
fab5db97 | 730 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 731 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
732 | .icache_bsize = 32, |
733 | .dcache_bsize = 32, | |
734 | .num_pmcs = 4, | |
b950bdd0 | 735 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 736 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 737 | .machine_check = machine_check_generic, |
80f15dc7 | 738 | .platform = "ppc750", |
7c9583a4 OP |
739 | .oprofile_cpu_type = "ppc/750", |
740 | .oprofile_type = PPC_OPROFILE_G4, | |
1da177e4 LT |
741 | }, |
742 | { /* 750FX rev 2.0 must disable HID0[DPM] */ | |
743 | .pvr_mask = 0xffffffff, | |
744 | .pvr_value = 0x70000200, | |
745 | .cpu_name = "750FX", | |
10b35d99 | 746 | .cpu_features = CPU_FTRS_750FX2, |
fab5db97 | 747 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 748 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
749 | .icache_bsize = 32, |
750 | .dcache_bsize = 32, | |
751 | .num_pmcs = 4, | |
b950bdd0 | 752 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 753 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 754 | .machine_check = machine_check_generic, |
80f15dc7 | 755 | .platform = "ppc750", |
7c9583a4 OP |
756 | .oprofile_cpu_type = "ppc/750", |
757 | .oprofile_type = PPC_OPROFILE_G4, | |
1da177e4 LT |
758 | }, |
759 | { /* 750FX (All revs except 2.0) */ | |
760 | .pvr_mask = 0xffff0000, | |
761 | .pvr_value = 0x70000000, | |
762 | .cpu_name = "750FX", | |
10b35d99 | 763 | .cpu_features = CPU_FTRS_750FX, |
fab5db97 | 764 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 765 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
766 | .icache_bsize = 32, |
767 | .dcache_bsize = 32, | |
768 | .num_pmcs = 4, | |
b950bdd0 | 769 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 770 | .cpu_setup = __setup_cpu_750fx, |
47c0bd1a | 771 | .machine_check = machine_check_generic, |
80f15dc7 | 772 | .platform = "ppc750", |
7c9583a4 OP |
773 | .oprofile_cpu_type = "ppc/750", |
774 | .oprofile_type = PPC_OPROFILE_G4, | |
1da177e4 LT |
775 | }, |
776 | { /* 750GX */ | |
777 | .pvr_mask = 0xffff0000, | |
778 | .pvr_value = 0x70020000, | |
779 | .cpu_name = "750GX", | |
10b35d99 | 780 | .cpu_features = CPU_FTRS_750GX, |
fab5db97 | 781 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 782 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
783 | .icache_bsize = 32, |
784 | .dcache_bsize = 32, | |
785 | .num_pmcs = 4, | |
b950bdd0 | 786 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 787 | .cpu_setup = __setup_cpu_750fx, |
47c0bd1a | 788 | .machine_check = machine_check_generic, |
80f15dc7 | 789 | .platform = "ppc750", |
7c9583a4 OP |
790 | .oprofile_cpu_type = "ppc/750", |
791 | .oprofile_type = PPC_OPROFILE_G4, | |
1da177e4 LT |
792 | }, |
793 | { /* 740/750 (L2CR bit need fixup for 740) */ | |
794 | .pvr_mask = 0xffff0000, | |
795 | .pvr_value = 0x00080000, | |
796 | .cpu_name = "740/750", | |
10b35d99 | 797 | .cpu_features = CPU_FTRS_740, |
fab5db97 | 798 | .cpu_user_features = COMMON_USER | PPC_FEATURE_PPC_LE, |
7c03d653 | 799 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
800 | .icache_bsize = 32, |
801 | .dcache_bsize = 32, | |
802 | .num_pmcs = 4, | |
b950bdd0 | 803 | .pmc_type = PPC_PMC_IBM, |
80f15dc7 | 804 | .cpu_setup = __setup_cpu_750, |
47c0bd1a | 805 | .machine_check = machine_check_generic, |
80f15dc7 | 806 | .platform = "ppc750", |
1da177e4 LT |
807 | }, |
808 | { /* 7400 rev 1.1 ? (no TAU) */ | |
809 | .pvr_mask = 0xffffffff, | |
810 | .pvr_value = 0x000c1101, | |
811 | .cpu_name = "7400 (1.1)", | |
10b35d99 | 812 | .cpu_features = CPU_FTRS_7400_NOTAU, |
fab5db97 PM |
813 | .cpu_user_features = COMMON_USER | |
814 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 815 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
816 | .icache_bsize = 32, |
817 | .dcache_bsize = 32, | |
818 | .num_pmcs = 4, | |
b950bdd0 | 819 | .pmc_type = PPC_PMC_G4, |
80f15dc7 | 820 | .cpu_setup = __setup_cpu_7400, |
47c0bd1a | 821 | .machine_check = machine_check_generic, |
80f15dc7 | 822 | .platform = "ppc7400", |
1da177e4 LT |
823 | }, |
824 | { /* 7400 */ | |
825 | .pvr_mask = 0xffff0000, | |
826 | .pvr_value = 0x000c0000, | |
827 | .cpu_name = "7400", | |
10b35d99 | 828 | .cpu_features = CPU_FTRS_7400, |
fab5db97 PM |
829 | .cpu_user_features = COMMON_USER | |
830 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 831 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
832 | .icache_bsize = 32, |
833 | .dcache_bsize = 32, | |
834 | .num_pmcs = 4, | |
b950bdd0 | 835 | .pmc_type = PPC_PMC_G4, |
80f15dc7 | 836 | .cpu_setup = __setup_cpu_7400, |
47c0bd1a | 837 | .machine_check = machine_check_generic, |
80f15dc7 | 838 | .platform = "ppc7400", |
1da177e4 LT |
839 | }, |
840 | { /* 7410 */ | |
841 | .pvr_mask = 0xffff0000, | |
842 | .pvr_value = 0x800c0000, | |
843 | .cpu_name = "7410", | |
10b35d99 | 844 | .cpu_features = CPU_FTRS_7400, |
fab5db97 PM |
845 | .cpu_user_features = COMMON_USER | |
846 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 847 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
848 | .icache_bsize = 32, |
849 | .dcache_bsize = 32, | |
850 | .num_pmcs = 4, | |
b950bdd0 | 851 | .pmc_type = PPC_PMC_G4, |
80f15dc7 | 852 | .cpu_setup = __setup_cpu_7410, |
47c0bd1a | 853 | .machine_check = machine_check_generic, |
80f15dc7 | 854 | .platform = "ppc7400", |
1da177e4 LT |
855 | }, |
856 | { /* 7450 2.0 - no doze/nap */ | |
857 | .pvr_mask = 0xffffffff, | |
858 | .pvr_value = 0x80000200, | |
859 | .cpu_name = "7450", | |
10b35d99 | 860 | .cpu_features = CPU_FTRS_7450_20, |
fab5db97 PM |
861 | .cpu_user_features = COMMON_USER | |
862 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 863 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
864 | .icache_bsize = 32, |
865 | .dcache_bsize = 32, | |
866 | .num_pmcs = 6, | |
b950bdd0 | 867 | .pmc_type = PPC_PMC_G4, |
555d97ac | 868 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 869 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 870 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 871 | .machine_check = machine_check_generic, |
80f15dc7 | 872 | .platform = "ppc7450", |
1da177e4 LT |
873 | }, |
874 | { /* 7450 2.1 */ | |
875 | .pvr_mask = 0xffffffff, | |
876 | .pvr_value = 0x80000201, | |
877 | .cpu_name = "7450", | |
10b35d99 | 878 | .cpu_features = CPU_FTRS_7450_21, |
fab5db97 PM |
879 | .cpu_user_features = COMMON_USER | |
880 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 881 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
882 | .icache_bsize = 32, |
883 | .dcache_bsize = 32, | |
884 | .num_pmcs = 6, | |
b950bdd0 | 885 | .pmc_type = PPC_PMC_G4, |
555d97ac | 886 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 887 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 888 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 889 | .machine_check = machine_check_generic, |
80f15dc7 | 890 | .platform = "ppc7450", |
1da177e4 LT |
891 | }, |
892 | { /* 7450 2.3 and newer */ | |
893 | .pvr_mask = 0xffff0000, | |
894 | .pvr_value = 0x80000000, | |
895 | .cpu_name = "7450", | |
10b35d99 | 896 | .cpu_features = CPU_FTRS_7450_23, |
fab5db97 PM |
897 | .cpu_user_features = COMMON_USER | |
898 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 899 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
900 | .icache_bsize = 32, |
901 | .dcache_bsize = 32, | |
902 | .num_pmcs = 6, | |
b950bdd0 | 903 | .pmc_type = PPC_PMC_G4, |
555d97ac | 904 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 905 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 906 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 907 | .machine_check = machine_check_generic, |
80f15dc7 | 908 | .platform = "ppc7450", |
1da177e4 LT |
909 | }, |
910 | { /* 7455 rev 1.x */ | |
911 | .pvr_mask = 0xffffff00, | |
912 | .pvr_value = 0x80010100, | |
913 | .cpu_name = "7455", | |
10b35d99 | 914 | .cpu_features = CPU_FTRS_7455_1, |
fab5db97 PM |
915 | .cpu_user_features = COMMON_USER | |
916 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 917 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
918 | .icache_bsize = 32, |
919 | .dcache_bsize = 32, | |
920 | .num_pmcs = 6, | |
b950bdd0 | 921 | .pmc_type = PPC_PMC_G4, |
555d97ac | 922 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 923 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 924 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 925 | .machine_check = machine_check_generic, |
80f15dc7 | 926 | .platform = "ppc7450", |
1da177e4 LT |
927 | }, |
928 | { /* 7455 rev 2.0 */ | |
929 | .pvr_mask = 0xffffffff, | |
930 | .pvr_value = 0x80010200, | |
931 | .cpu_name = "7455", | |
10b35d99 | 932 | .cpu_features = CPU_FTRS_7455_20, |
fab5db97 PM |
933 | .cpu_user_features = COMMON_USER | |
934 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 935 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
936 | .icache_bsize = 32, |
937 | .dcache_bsize = 32, | |
938 | .num_pmcs = 6, | |
b950bdd0 | 939 | .pmc_type = PPC_PMC_G4, |
555d97ac | 940 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 941 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 942 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 943 | .machine_check = machine_check_generic, |
80f15dc7 | 944 | .platform = "ppc7450", |
1da177e4 LT |
945 | }, |
946 | { /* 7455 others */ | |
947 | .pvr_mask = 0xffff0000, | |
948 | .pvr_value = 0x80010000, | |
949 | .cpu_name = "7455", | |
10b35d99 | 950 | .cpu_features = CPU_FTRS_7455, |
fab5db97 PM |
951 | .cpu_user_features = COMMON_USER | |
952 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 953 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
954 | .icache_bsize = 32, |
955 | .dcache_bsize = 32, | |
956 | .num_pmcs = 6, | |
b950bdd0 | 957 | .pmc_type = PPC_PMC_G4, |
555d97ac | 958 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 959 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 960 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 961 | .machine_check = machine_check_generic, |
80f15dc7 | 962 | .platform = "ppc7450", |
1da177e4 LT |
963 | }, |
964 | { /* 7447/7457 Rev 1.0 */ | |
965 | .pvr_mask = 0xffffffff, | |
966 | .pvr_value = 0x80020100, | |
967 | .cpu_name = "7447/7457", | |
10b35d99 | 968 | .cpu_features = CPU_FTRS_7447_10, |
fab5db97 PM |
969 | .cpu_user_features = COMMON_USER | |
970 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 971 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
972 | .icache_bsize = 32, |
973 | .dcache_bsize = 32, | |
974 | .num_pmcs = 6, | |
b950bdd0 | 975 | .pmc_type = PPC_PMC_G4, |
555d97ac | 976 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 977 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 978 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 979 | .machine_check = machine_check_generic, |
80f15dc7 | 980 | .platform = "ppc7450", |
1da177e4 LT |
981 | }, |
982 | { /* 7447/7457 Rev 1.1 */ | |
983 | .pvr_mask = 0xffffffff, | |
984 | .pvr_value = 0x80020101, | |
985 | .cpu_name = "7447/7457", | |
10b35d99 | 986 | .cpu_features = CPU_FTRS_7447_10, |
fab5db97 PM |
987 | .cpu_user_features = COMMON_USER | |
988 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 989 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
990 | .icache_bsize = 32, |
991 | .dcache_bsize = 32, | |
992 | .num_pmcs = 6, | |
b950bdd0 | 993 | .pmc_type = PPC_PMC_G4, |
555d97ac | 994 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 995 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 996 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 997 | .machine_check = machine_check_generic, |
80f15dc7 | 998 | .platform = "ppc7450", |
1da177e4 LT |
999 | }, |
1000 | { /* 7447/7457 Rev 1.2 and later */ | |
1001 | .pvr_mask = 0xffff0000, | |
1002 | .pvr_value = 0x80020000, | |
1003 | .cpu_name = "7447/7457", | |
10b35d99 | 1004 | .cpu_features = CPU_FTRS_7447, |
fab5db97 | 1005 | .cpu_user_features = COMMON_USER | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, |
7c03d653 | 1006 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1007 | .icache_bsize = 32, |
1008 | .dcache_bsize = 32, | |
1009 | .num_pmcs = 6, | |
b950bdd0 | 1010 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1011 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1012 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1013 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1014 | .machine_check = machine_check_generic, |
80f15dc7 | 1015 | .platform = "ppc7450", |
1da177e4 LT |
1016 | }, |
1017 | { /* 7447A */ | |
1018 | .pvr_mask = 0xffff0000, | |
1019 | .pvr_value = 0x80030000, | |
1020 | .cpu_name = "7447A", | |
10b35d99 | 1021 | .cpu_features = CPU_FTRS_7447A, |
fab5db97 PM |
1022 | .cpu_user_features = COMMON_USER | |
1023 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 1024 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
bbde630b KG |
1025 | .icache_bsize = 32, |
1026 | .dcache_bsize = 32, | |
1027 | .num_pmcs = 6, | |
b950bdd0 | 1028 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1029 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1030 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1031 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1032 | .machine_check = machine_check_generic, |
80f15dc7 | 1033 | .platform = "ppc7450", |
bbde630b KG |
1034 | }, |
1035 | { /* 7448 */ | |
1036 | .pvr_mask = 0xffff0000, | |
1037 | .pvr_value = 0x80040000, | |
1038 | .cpu_name = "7448", | |
3d372548 | 1039 | .cpu_features = CPU_FTRS_7448, |
fab5db97 PM |
1040 | .cpu_user_features = COMMON_USER | |
1041 | PPC_FEATURE_HAS_ALTIVEC_COMP | PPC_FEATURE_PPC_LE, | |
7c03d653 | 1042 | .mmu_features = MMU_FTR_HPTE_TABLE | MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1043 | .icache_bsize = 32, |
1044 | .dcache_bsize = 32, | |
1045 | .num_pmcs = 6, | |
b950bdd0 | 1046 | .pmc_type = PPC_PMC_G4, |
555d97ac | 1047 | .cpu_setup = __setup_cpu_745x, |
555d97ac | 1048 | .oprofile_cpu_type = "ppc/7450", |
7a45fb19 | 1049 | .oprofile_type = PPC_OPROFILE_G4, |
47c0bd1a | 1050 | .machine_check = machine_check_generic, |
80f15dc7 | 1051 | .platform = "ppc7450", |
1da177e4 LT |
1052 | }, |
1053 | { /* 82xx (8240, 8245, 8260 are all 603e cores) */ | |
1054 | .pvr_mask = 0x7fff0000, | |
1055 | .pvr_value = 0x00810000, | |
1056 | .cpu_name = "82xx", | |
10b35d99 | 1057 | .cpu_features = CPU_FTRS_82XX, |
4920960f | 1058 | .cpu_user_features = COMMON_USER, |
7c03d653 | 1059 | .mmu_features = 0, |
1da177e4 LT |
1060 | .icache_bsize = 32, |
1061 | .dcache_bsize = 32, | |
80f15dc7 | 1062 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 1063 | .machine_check = machine_check_generic, |
80f15dc7 | 1064 | .platform = "ppc603", |
1da177e4 LT |
1065 | }, |
1066 | { /* All G2_LE (603e core, plus some) have the same pvr */ | |
1067 | .pvr_mask = 0x7fff0000, | |
1068 | .pvr_value = 0x00820000, | |
1069 | .cpu_name = "G2_LE", | |
10b35d99 | 1070 | .cpu_features = CPU_FTRS_G2_LE, |
4920960f | 1071 | .cpu_user_features = COMMON_USER, |
7c03d653 | 1072 | .mmu_features = MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1073 | .icache_bsize = 32, |
1074 | .dcache_bsize = 32, | |
80f15dc7 | 1075 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 1076 | .machine_check = machine_check_generic, |
80f15dc7 | 1077 | .platform = "ppc603", |
1da177e4 | 1078 | }, |
6c4a2501 | 1079 | { /* e300c1 (a 603e core, plus some) on 83xx */ |
1da177e4 LT |
1080 | .pvr_mask = 0x7fff0000, |
1081 | .pvr_value = 0x00830000, | |
6c4a2501 | 1082 | .cpu_name = "e300c1", |
10b35d99 | 1083 | .cpu_features = CPU_FTRS_E300, |
4920960f | 1084 | .cpu_user_features = COMMON_USER, |
7c03d653 | 1085 | .mmu_features = MMU_FTR_USE_HIGH_BATS, |
1da177e4 LT |
1086 | .icache_bsize = 32, |
1087 | .dcache_bsize = 32, | |
80f15dc7 | 1088 | .cpu_setup = __setup_cpu_603, |
47c0bd1a | 1089 | .machine_check = machine_check_generic, |
80f15dc7 | 1090 | .platform = "ppc603", |
1da177e4 | 1091 | }, |
6c4a2501 KP |
1092 | { /* e300c2 (an e300c1 core, plus some, minus FPU) on 83xx */ |
1093 | .pvr_mask = 0x7fff0000, | |
1094 | .pvr_value = 0x00840000, | |
1095 | .cpu_name = "e300c2", | |
aa42c69c | 1096 | .cpu_features = CPU_FTRS_E300C2, |
6c4a2501 | 1097 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
2319f123 KG |
1098 | .mmu_features = MMU_FTR_USE_HIGH_BATS | |
1099 | MMU_FTR_NEED_DTLB_SW_LRU, | |
6c4a2501 KP |
1100 | .icache_bsize = 32, |
1101 | .dcache_bsize = 32, | |
1102 | .cpu_setup = __setup_cpu_603, | |
47c0bd1a | 1103 | .machine_check = machine_check_generic, |
6c4a2501 KP |
1104 | .platform = "ppc603", |
1105 | }, | |
a58d5244 | 1106 | { /* e300c3 (e300c1, plus one IU, half cache size) on 83xx */ |
57933f8f SW |
1107 | .pvr_mask = 0x7fff0000, |
1108 | .pvr_value = 0x00850000, | |
1109 | .cpu_name = "e300c3", | |
1110 | .cpu_features = CPU_FTRS_E300, | |
1111 | .cpu_user_features = COMMON_USER, | |
2319f123 KG |
1112 | .mmu_features = MMU_FTR_USE_HIGH_BATS | |
1113 | MMU_FTR_NEED_DTLB_SW_LRU, | |
57933f8f SW |
1114 | .icache_bsize = 32, |
1115 | .dcache_bsize = 32, | |
1116 | .cpu_setup = __setup_cpu_603, | |
1347a2c1 AF |
1117 | .num_pmcs = 4, |
1118 | .oprofile_cpu_type = "ppc/e300", | |
1119 | .oprofile_type = PPC_OPROFILE_FSL_EMB, | |
57933f8f SW |
1120 | .platform = "ppc603", |
1121 | }, | |
a58d5244 LY |
1122 | { /* e300c4 (e300c1, plus one IU) */ |
1123 | .pvr_mask = 0x7fff0000, | |
1124 | .pvr_value = 0x00860000, | |
1125 | .cpu_name = "e300c4", | |
1126 | .cpu_features = CPU_FTRS_E300, | |
1127 | .cpu_user_features = COMMON_USER, | |
2319f123 KG |
1128 | .mmu_features = MMU_FTR_USE_HIGH_BATS | |
1129 | MMU_FTR_NEED_DTLB_SW_LRU, | |
a58d5244 LY |
1130 | .icache_bsize = 32, |
1131 | .dcache_bsize = 32, | |
1132 | .cpu_setup = __setup_cpu_603, | |
47c0bd1a | 1133 | .machine_check = machine_check_generic, |
1347a2c1 AF |
1134 | .num_pmcs = 4, |
1135 | .oprofile_cpu_type = "ppc/e300", | |
1136 | .oprofile_type = PPC_OPROFILE_FSL_EMB, | |
a58d5244 LY |
1137 | .platform = "ppc603", |
1138 | }, | |
1da177e4 LT |
1139 | { /* default match, we assume split I/D cache & TB (non-601)... */ |
1140 | .pvr_mask = 0x00000000, | |
1141 | .pvr_value = 0x00000000, | |
1142 | .cpu_name = "(generic PPC)", | |
10b35d99 | 1143 | .cpu_features = CPU_FTRS_CLASSIC32, |
4920960f | 1144 | .cpu_user_features = COMMON_USER, |
7c03d653 | 1145 | .mmu_features = MMU_FTR_HPTE_TABLE, |
1da177e4 LT |
1146 | .icache_bsize = 32, |
1147 | .dcache_bsize = 32, | |
47c0bd1a | 1148 | .machine_check = machine_check_generic, |
80f15dc7 | 1149 | .platform = "ppc603", |
1da177e4 LT |
1150 | }, |
1151 | #endif /* CLASSIC_PPC */ | |
1da177e4 LT |
1152 | #ifdef CONFIG_8xx |
1153 | { /* 8xx */ | |
1154 | .pvr_mask = 0xffff0000, | |
1155 | .pvr_value = 0x00500000, | |
1156 | .cpu_name = "8xx", | |
1157 | /* CPU_FTR_MAYBE_CAN_DOZE is possible, | |
1158 | * if the 8xx code is there.... */ | |
10b35d99 | 1159 | .cpu_features = CPU_FTRS_8XX, |
1da177e4 | 1160 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
7c03d653 | 1161 | .mmu_features = MMU_FTR_TYPE_8xx, |
1da177e4 LT |
1162 | .icache_bsize = 16, |
1163 | .dcache_bsize = 16, | |
80f15dc7 | 1164 | .platform = "ppc823", |
1da177e4 LT |
1165 | }, |
1166 | #endif /* CONFIG_8xx */ | |
1167 | #ifdef CONFIG_40x | |
1168 | { /* 403GC */ | |
1169 | .pvr_mask = 0xffffff00, | |
1170 | .pvr_value = 0x00200200, | |
1171 | .cpu_name = "403GC", | |
10b35d99 | 1172 | .cpu_features = CPU_FTRS_40X, |
1da177e4 | 1173 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
7c03d653 | 1174 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1175 | .icache_bsize = 16, |
1176 | .dcache_bsize = 16, | |
47c0bd1a | 1177 | .machine_check = machine_check_4xx, |
80f15dc7 | 1178 | .platform = "ppc403", |
1da177e4 LT |
1179 | }, |
1180 | { /* 403GCX */ | |
1181 | .pvr_mask = 0xffffff00, | |
1182 | .pvr_value = 0x00201400, | |
1183 | .cpu_name = "403GCX", | |
10b35d99 | 1184 | .cpu_features = CPU_FTRS_40X, |
d8e998c5 BH |
1185 | .cpu_user_features = PPC_FEATURE_32 | |
1186 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB, | |
7c03d653 | 1187 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1188 | .icache_bsize = 16, |
1189 | .dcache_bsize = 16, | |
47c0bd1a | 1190 | .machine_check = machine_check_4xx, |
80f15dc7 | 1191 | .platform = "ppc403", |
1da177e4 LT |
1192 | }, |
1193 | { /* 403G ?? */ | |
1194 | .pvr_mask = 0xffff0000, | |
1195 | .pvr_value = 0x00200000, | |
1196 | .cpu_name = "403G ??", | |
10b35d99 | 1197 | .cpu_features = CPU_FTRS_40X, |
1da177e4 | 1198 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
7c03d653 | 1199 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1200 | .icache_bsize = 16, |
1201 | .dcache_bsize = 16, | |
47c0bd1a | 1202 | .machine_check = machine_check_4xx, |
80f15dc7 | 1203 | .platform = "ppc403", |
1da177e4 LT |
1204 | }, |
1205 | { /* 405GP */ | |
1206 | .pvr_mask = 0xffff0000, | |
1207 | .pvr_value = 0x40110000, | |
1208 | .cpu_name = "405GP", | |
10b35d99 | 1209 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1210 | .cpu_user_features = PPC_FEATURE_32 | |
1211 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1212 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1213 | .icache_bsize = 32, |
1214 | .dcache_bsize = 32, | |
47c0bd1a | 1215 | .machine_check = machine_check_4xx, |
80f15dc7 | 1216 | .platform = "ppc405", |
1da177e4 LT |
1217 | }, |
1218 | { /* STB 03xxx */ | |
1219 | .pvr_mask = 0xffff0000, | |
1220 | .pvr_value = 0x40130000, | |
1221 | .cpu_name = "STB03xxx", | |
10b35d99 | 1222 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1223 | .cpu_user_features = PPC_FEATURE_32 | |
1224 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1225 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1226 | .icache_bsize = 32, |
1227 | .dcache_bsize = 32, | |
47c0bd1a | 1228 | .machine_check = machine_check_4xx, |
80f15dc7 | 1229 | .platform = "ppc405", |
1da177e4 LT |
1230 | }, |
1231 | { /* STB 04xxx */ | |
1232 | .pvr_mask = 0xffff0000, | |
1233 | .pvr_value = 0x41810000, | |
1234 | .cpu_name = "STB04xxx", | |
10b35d99 | 1235 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1236 | .cpu_user_features = PPC_FEATURE_32 | |
1237 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1238 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1239 | .icache_bsize = 32, |
1240 | .dcache_bsize = 32, | |
47c0bd1a | 1241 | .machine_check = machine_check_4xx, |
80f15dc7 | 1242 | .platform = "ppc405", |
1da177e4 LT |
1243 | }, |
1244 | { /* NP405L */ | |
1245 | .pvr_mask = 0xffff0000, | |
1246 | .pvr_value = 0x41610000, | |
1247 | .cpu_name = "NP405L", | |
10b35d99 | 1248 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1249 | .cpu_user_features = PPC_FEATURE_32 | |
1250 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1251 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1252 | .icache_bsize = 32, |
1253 | .dcache_bsize = 32, | |
47c0bd1a | 1254 | .machine_check = machine_check_4xx, |
80f15dc7 | 1255 | .platform = "ppc405", |
1da177e4 LT |
1256 | }, |
1257 | { /* NP4GS3 */ | |
1258 | .pvr_mask = 0xffff0000, | |
1259 | .pvr_value = 0x40B10000, | |
1260 | .cpu_name = "NP4GS3", | |
10b35d99 | 1261 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1262 | .cpu_user_features = PPC_FEATURE_32 | |
1263 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1264 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1265 | .icache_bsize = 32, |
1266 | .dcache_bsize = 32, | |
47c0bd1a | 1267 | .machine_check = machine_check_4xx, |
80f15dc7 | 1268 | .platform = "ppc405", |
1da177e4 LT |
1269 | }, |
1270 | { /* NP405H */ | |
1271 | .pvr_mask = 0xffff0000, | |
1272 | .pvr_value = 0x41410000, | |
1273 | .cpu_name = "NP405H", | |
10b35d99 | 1274 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1275 | .cpu_user_features = PPC_FEATURE_32 | |
1276 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1277 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1278 | .icache_bsize = 32, |
1279 | .dcache_bsize = 32, | |
47c0bd1a | 1280 | .machine_check = machine_check_4xx, |
80f15dc7 | 1281 | .platform = "ppc405", |
1da177e4 LT |
1282 | }, |
1283 | { /* 405GPr */ | |
1284 | .pvr_mask = 0xffff0000, | |
1285 | .pvr_value = 0x50910000, | |
1286 | .cpu_name = "405GPr", | |
10b35d99 | 1287 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1288 | .cpu_user_features = PPC_FEATURE_32 | |
1289 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1290 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1291 | .icache_bsize = 32, |
1292 | .dcache_bsize = 32, | |
47c0bd1a | 1293 | .machine_check = machine_check_4xx, |
80f15dc7 | 1294 | .platform = "ppc405", |
1da177e4 LT |
1295 | }, |
1296 | { /* STBx25xx */ | |
1297 | .pvr_mask = 0xffff0000, | |
1298 | .pvr_value = 0x51510000, | |
1299 | .cpu_name = "STBx25xx", | |
10b35d99 | 1300 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1301 | .cpu_user_features = PPC_FEATURE_32 | |
1302 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1303 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1304 | .icache_bsize = 32, |
1305 | .dcache_bsize = 32, | |
47c0bd1a | 1306 | .machine_check = machine_check_4xx, |
80f15dc7 | 1307 | .platform = "ppc405", |
1da177e4 LT |
1308 | }, |
1309 | { /* 405LP */ | |
1310 | .pvr_mask = 0xffff0000, | |
1311 | .pvr_value = 0x41F10000, | |
1312 | .cpu_name = "405LP", | |
10b35d99 | 1313 | .cpu_features = CPU_FTRS_40X, |
1da177e4 | 1314 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, |
7c03d653 | 1315 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1316 | .icache_bsize = 32, |
1317 | .dcache_bsize = 32, | |
47c0bd1a | 1318 | .machine_check = machine_check_4xx, |
80f15dc7 | 1319 | .platform = "ppc405", |
1da177e4 LT |
1320 | }, |
1321 | { /* Xilinx Virtex-II Pro */ | |
72646c7f | 1322 | .pvr_mask = 0xfffff000, |
1da177e4 LT |
1323 | .pvr_value = 0x20010000, |
1324 | .cpu_name = "Virtex-II Pro", | |
10b35d99 | 1325 | .cpu_features = CPU_FTRS_40X, |
1da177e4 LT |
1326 | .cpu_user_features = PPC_FEATURE_32 | |
1327 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1328 | .mmu_features = MMU_FTR_TYPE_40x, |
1da177e4 LT |
1329 | .icache_bsize = 32, |
1330 | .dcache_bsize = 32, | |
47c0bd1a | 1331 | .machine_check = machine_check_4xx, |
80f15dc7 | 1332 | .platform = "ppc405", |
1da177e4 | 1333 | }, |
72646c7f GL |
1334 | { /* Xilinx Virtex-4 FX */ |
1335 | .pvr_mask = 0xfffff000, | |
1336 | .pvr_value = 0x20011000, | |
1337 | .cpu_name = "Virtex-4 FX", | |
1338 | .cpu_features = CPU_FTRS_40X, | |
1339 | .cpu_user_features = PPC_FEATURE_32 | | |
1340 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1341 | .mmu_features = MMU_FTR_TYPE_40x, |
72646c7f GL |
1342 | .icache_bsize = 32, |
1343 | .dcache_bsize = 32, | |
47c0bd1a | 1344 | .machine_check = machine_check_4xx, |
838fdb4d | 1345 | .platform = "ppc405", |
72646c7f | 1346 | }, |
ad95d609 ES |
1347 | { /* 405EP */ |
1348 | .pvr_mask = 0xffff0000, | |
1349 | .pvr_value = 0x51210000, | |
1350 | .cpu_name = "405EP", | |
10b35d99 | 1351 | .cpu_features = CPU_FTRS_40X, |
5d8476c8 SR |
1352 | .cpu_user_features = PPC_FEATURE_32 | |
1353 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1354 | .mmu_features = MMU_FTR_TYPE_40x, |
5d8476c8 SR |
1355 | .icache_bsize = 32, |
1356 | .dcache_bsize = 32, | |
47c0bd1a | 1357 | .machine_check = machine_check_4xx, |
5d8476c8 SR |
1358 | .platform = "ppc405", |
1359 | }, | |
1360 | { /* 405EX */ | |
b676d84e SR |
1361 | .pvr_mask = 0xffff0004, |
1362 | .pvr_value = 0x12910004, | |
5d8476c8 SR |
1363 | .cpu_name = "405EX", |
1364 | .cpu_features = CPU_FTRS_40X, | |
ad95d609 ES |
1365 | .cpu_user_features = PPC_FEATURE_32 | |
1366 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1367 | .mmu_features = MMU_FTR_TYPE_40x, |
ad95d609 ES |
1368 | .icache_bsize = 32, |
1369 | .dcache_bsize = 32, | |
47c0bd1a | 1370 | .machine_check = machine_check_4xx, |
80f15dc7 | 1371 | .platform = "ppc405", |
ad95d609 | 1372 | }, |
b676d84e SR |
1373 | { /* 405EXr */ |
1374 | .pvr_mask = 0xffff0004, | |
1375 | .pvr_value = 0x12910000, | |
1376 | .cpu_name = "405EXr", | |
1377 | .cpu_features = CPU_FTRS_40X, | |
1378 | .cpu_user_features = PPC_FEATURE_32 | | |
1379 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1380 | .mmu_features = MMU_FTR_TYPE_40x, |
b676d84e SR |
1381 | .icache_bsize = 32, |
1382 | .dcache_bsize = 32, | |
1383 | .machine_check = machine_check_4xx, | |
1384 | .platform = "ppc405", | |
1385 | }, | |
df8f71fa JB |
1386 | { |
1387 | /* 405EZ */ | |
1388 | .pvr_mask = 0xffff0000, | |
1389 | .pvr_value = 0x41510000, | |
1390 | .cpu_name = "405EZ", | |
1391 | .cpu_features = CPU_FTRS_40X, | |
1392 | .cpu_user_features = PPC_FEATURE_32 | | |
1393 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1394 | .mmu_features = MMU_FTR_TYPE_40x, |
df8f71fa JB |
1395 | .icache_bsize = 32, |
1396 | .dcache_bsize = 32, | |
1397 | .machine_check = machine_check_4xx, | |
1398 | .platform = "ppc405", | |
1399 | }, | |
76bc080e BH |
1400 | { /* default match */ |
1401 | .pvr_mask = 0x00000000, | |
1402 | .pvr_value = 0x00000000, | |
1403 | .cpu_name = "(generic 40x PPC)", | |
1404 | .cpu_features = CPU_FTRS_40X, | |
1405 | .cpu_user_features = PPC_FEATURE_32 | | |
1406 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_HAS_4xxMAC, | |
7c03d653 | 1407 | .mmu_features = MMU_FTR_TYPE_40x, |
76bc080e BH |
1408 | .icache_bsize = 32, |
1409 | .dcache_bsize = 32, | |
1410 | .machine_check = machine_check_4xx, | |
1411 | .platform = "ppc405", | |
1412 | } | |
1da177e4 LT |
1413 | |
1414 | #endif /* CONFIG_40x */ | |
1415 | #ifdef CONFIG_44x | |
c9cf73ae MP |
1416 | { |
1417 | .pvr_mask = 0xf0000fff, | |
1418 | .pvr_value = 0x40000850, | |
d1dfc35d VB |
1419 | .cpu_name = "440GR Rev. A", |
1420 | .cpu_features = CPU_FTRS_44X, | |
1421 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1422 | .mmu_features = MMU_FTR_TYPE_44x, |
d1dfc35d VB |
1423 | .icache_bsize = 32, |
1424 | .dcache_bsize = 32, | |
47c0bd1a | 1425 | .machine_check = machine_check_4xx, |
d1dfc35d VB |
1426 | .platform = "ppc440", |
1427 | }, | |
1428 | { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */ | |
1429 | .pvr_mask = 0xf0000fff, | |
1430 | .pvr_value = 0x40000858, | |
c9cf73ae | 1431 | .cpu_name = "440EP Rev. A", |
10b35d99 | 1432 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1433 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
7c03d653 | 1434 | .mmu_features = MMU_FTR_TYPE_44x, |
c9cf73ae MP |
1435 | .icache_bsize = 32, |
1436 | .dcache_bsize = 32, | |
8112753b | 1437 | .cpu_setup = __setup_cpu_440ep, |
47c0bd1a | 1438 | .machine_check = machine_check_4xx, |
80f15dc7 | 1439 | .platform = "ppc440", |
c9cf73ae MP |
1440 | }, |
1441 | { | |
1442 | .pvr_mask = 0xf0000fff, | |
1443 | .pvr_value = 0x400008d3, | |
d1dfc35d | 1444 | .cpu_name = "440GR Rev. B", |
10b35d99 | 1445 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1446 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
7c03d653 | 1447 | .mmu_features = MMU_FTR_TYPE_44x, |
c9cf73ae MP |
1448 | .icache_bsize = 32, |
1449 | .dcache_bsize = 32, | |
47c0bd1a | 1450 | .machine_check = machine_check_4xx, |
80f15dc7 | 1451 | .platform = "ppc440", |
c9cf73ae | 1452 | }, |
3f8fc3e0 SM |
1453 | { /* Matches both physical and logical PVR for 440EP (logical pvr = pvr | 0x8) */ |
1454 | .pvr_mask = 0xf0000ff7, | |
1455 | .pvr_value = 0x400008d4, | |
1456 | .cpu_name = "440EP Rev. C", | |
1457 | .cpu_features = CPU_FTRS_44X, | |
1458 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
7c03d653 | 1459 | .mmu_features = MMU_FTR_TYPE_44x, |
3f8fc3e0 SM |
1460 | .icache_bsize = 32, |
1461 | .dcache_bsize = 32, | |
1462 | .cpu_setup = __setup_cpu_440ep, | |
1463 | .machine_check = machine_check_4xx, | |
1464 | .platform = "ppc440", | |
1465 | }, | |
d1dfc35d VB |
1466 | { /* Use logical PVR for 440EP (logical pvr = pvr | 0x8) */ |
1467 | .pvr_mask = 0xf0000fff, | |
1468 | .pvr_value = 0x400008db, | |
1469 | .cpu_name = "440EP Rev. B", | |
15fc993e VB |
1470 | .cpu_features = CPU_FTRS_44X, |
1471 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
7c03d653 | 1472 | .mmu_features = MMU_FTR_TYPE_44x, |
15fc993e VB |
1473 | .icache_bsize = 32, |
1474 | .dcache_bsize = 32, | |
d1dfc35d | 1475 | .cpu_setup = __setup_cpu_440ep, |
47c0bd1a | 1476 | .machine_check = machine_check_4xx, |
8112753b | 1477 | .platform = "ppc440", |
15fc993e VB |
1478 | }, |
1479 | { /* 440GRX */ | |
1480 | .pvr_mask = 0xf0000ffb, | |
d1dfc35d | 1481 | .pvr_value = 0x200008D0, |
15fc993e VB |
1482 | .cpu_name = "440GRX", |
1483 | .cpu_features = CPU_FTRS_44X, | |
1484 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1485 | .mmu_features = MMU_FTR_TYPE_44x, |
15fc993e VB |
1486 | .icache_bsize = 32, |
1487 | .dcache_bsize = 32, | |
340ffd26 | 1488 | .cpu_setup = __setup_cpu_440grx, |
b2be3b15 | 1489 | .machine_check = machine_check_440A, |
340ffd26 | 1490 | .platform = "ppc440", |
15fc993e | 1491 | }, |
d1dfc35d VB |
1492 | { /* Use logical PVR for 440EPx (logical pvr = pvr | 0x8) */ |
1493 | .pvr_mask = 0xf0000ffb, | |
1494 | .pvr_value = 0x200008D8, | |
1495 | .cpu_name = "440EPX", | |
1496 | .cpu_features = CPU_FTRS_44X, | |
1497 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
7c03d653 | 1498 | .mmu_features = MMU_FTR_TYPE_44x, |
d1dfc35d VB |
1499 | .icache_bsize = 32, |
1500 | .dcache_bsize = 32, | |
1501 | .cpu_setup = __setup_cpu_440epx, | |
47c0bd1a | 1502 | .machine_check = machine_check_440A, |
d1dfc35d VB |
1503 | .platform = "ppc440", |
1504 | }, | |
4920960f | 1505 | { /* 440GP Rev. B */ |
1da177e4 LT |
1506 | .pvr_mask = 0xf0000fff, |
1507 | .pvr_value = 0x40000440, | |
1508 | .cpu_name = "440GP Rev. B", | |
10b35d99 | 1509 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1510 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1511 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1512 | .icache_bsize = 32, |
1513 | .dcache_bsize = 32, | |
47c0bd1a | 1514 | .machine_check = machine_check_4xx, |
80f15dc7 | 1515 | .platform = "ppc440gp", |
1da177e4 | 1516 | }, |
4920960f | 1517 | { /* 440GP Rev. C */ |
1da177e4 LT |
1518 | .pvr_mask = 0xf0000fff, |
1519 | .pvr_value = 0x40000481, | |
1520 | .cpu_name = "440GP Rev. C", | |
10b35d99 | 1521 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1522 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1523 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1524 | .icache_bsize = 32, |
1525 | .dcache_bsize = 32, | |
47c0bd1a | 1526 | .machine_check = machine_check_4xx, |
80f15dc7 | 1527 | .platform = "ppc440gp", |
1da177e4 LT |
1528 | }, |
1529 | { /* 440GX Rev. A */ | |
1530 | .pvr_mask = 0xf0000fff, | |
1531 | .pvr_value = 0x50000850, | |
1532 | .cpu_name = "440GX Rev. A", | |
10b35d99 | 1533 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1534 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1535 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1536 | .icache_bsize = 32, |
1537 | .dcache_bsize = 32, | |
47c0bd1a BH |
1538 | .cpu_setup = __setup_cpu_440gx, |
1539 | .machine_check = machine_check_440A, | |
80f15dc7 | 1540 | .platform = "ppc440", |
1da177e4 LT |
1541 | }, |
1542 | { /* 440GX Rev. B */ | |
1543 | .pvr_mask = 0xf0000fff, | |
1544 | .pvr_value = 0x50000851, | |
1545 | .cpu_name = "440GX Rev. B", | |
10b35d99 | 1546 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1547 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1548 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1549 | .icache_bsize = 32, |
1550 | .dcache_bsize = 32, | |
47c0bd1a BH |
1551 | .cpu_setup = __setup_cpu_440gx, |
1552 | .machine_check = machine_check_440A, | |
80f15dc7 | 1553 | .platform = "ppc440", |
1da177e4 LT |
1554 | }, |
1555 | { /* 440GX Rev. C */ | |
1556 | .pvr_mask = 0xf0000fff, | |
1557 | .pvr_value = 0x50000892, | |
1558 | .cpu_name = "440GX Rev. C", | |
10b35d99 | 1559 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1560 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1561 | .mmu_features = MMU_FTR_TYPE_44x, |
1da177e4 LT |
1562 | .icache_bsize = 32, |
1563 | .dcache_bsize = 32, | |
47c0bd1a BH |
1564 | .cpu_setup = __setup_cpu_440gx, |
1565 | .machine_check = machine_check_440A, | |
80f15dc7 | 1566 | .platform = "ppc440", |
1da177e4 | 1567 | }, |
9149fb3b ES |
1568 | { /* 440GX Rev. F */ |
1569 | .pvr_mask = 0xf0000fff, | |
1570 | .pvr_value = 0x50000894, | |
1571 | .cpu_name = "440GX Rev. F", | |
10b35d99 | 1572 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1573 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1574 | .mmu_features = MMU_FTR_TYPE_44x, |
9149fb3b ES |
1575 | .icache_bsize = 32, |
1576 | .dcache_bsize = 32, | |
47c0bd1a BH |
1577 | .cpu_setup = __setup_cpu_440gx, |
1578 | .machine_check = machine_check_440A, | |
80f15dc7 | 1579 | .platform = "ppc440", |
9149fb3b | 1580 | }, |
656de7e4 | 1581 | { /* 440SP Rev. A */ |
333e6154 RD |
1582 | .pvr_mask = 0xfff00fff, |
1583 | .pvr_value = 0x53200891, | |
656de7e4 | 1584 | .cpu_name = "440SP Rev. A", |
10b35d99 | 1585 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1586 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1587 | .mmu_features = MMU_FTR_TYPE_44x, |
656de7e4 MP |
1588 | .icache_bsize = 32, |
1589 | .dcache_bsize = 32, | |
47c0bd1a | 1590 | .machine_check = machine_check_4xx, |
80f15dc7 | 1591 | .platform = "ppc440", |
656de7e4 | 1592 | }, |
b0f7b8bc | 1593 | { /* 440SPe Rev. A */ |
333e6154 RD |
1594 | .pvr_mask = 0xfff00fff, |
1595 | .pvr_value = 0x53400890, | |
1596 | .cpu_name = "440SPe Rev. A", | |
1597 | .cpu_features = CPU_FTRS_44X, | |
1598 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1599 | .mmu_features = MMU_FTR_TYPE_44x, |
333e6154 RD |
1600 | .icache_bsize = 32, |
1601 | .dcache_bsize = 32, | |
47c0bd1a BH |
1602 | .cpu_setup = __setup_cpu_440spe, |
1603 | .machine_check = machine_check_440A, | |
333e6154 RD |
1604 | .platform = "ppc440", |
1605 | }, | |
1606 | { /* 440SPe Rev. B */ | |
1607 | .pvr_mask = 0xfff00fff, | |
1608 | .pvr_value = 0x53400891, | |
1609 | .cpu_name = "440SPe Rev. B", | |
a147c585 | 1610 | .cpu_features = CPU_FTRS_44X, |
80f15dc7 | 1611 | .cpu_user_features = COMMON_USER_BOOKE, |
7c03d653 | 1612 | .mmu_features = MMU_FTR_TYPE_44x, |
b0f7b8bc RD |
1613 | .icache_bsize = 32, |
1614 | .dcache_bsize = 32, | |
47c0bd1a BH |
1615 | .cpu_setup = __setup_cpu_440spe, |
1616 | .machine_check = machine_check_440A, | |
80f15dc7 | 1617 | .platform = "ppc440", |
b0f7b8bc | 1618 | }, |
23e7237e JL |
1619 | { /* 440 in Xilinx Virtex-5 FXT */ |
1620 | .pvr_mask = 0xfffffff0, | |
1621 | .pvr_value = 0x7ff21910, | |
1622 | .cpu_name = "440 in Virtex-5 FXT", | |
1623 | .cpu_features = CPU_FTRS_44X, | |
1624 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1625 | .mmu_features = MMU_FTR_TYPE_44x, |
23e7237e JL |
1626 | .icache_bsize = 32, |
1627 | .dcache_bsize = 32, | |
640d17d6 GL |
1628 | .cpu_setup = __setup_cpu_440x5, |
1629 | .machine_check = machine_check_440A, | |
23e7237e JL |
1630 | .platform = "ppc440", |
1631 | }, | |
464076a4 SR |
1632 | { /* 460EX */ |
1633 | .pvr_mask = 0xffff0002, | |
1634 | .pvr_value = 0x13020002, | |
1635 | .cpu_name = "460EX", | |
6d2170be | 1636 | .cpu_features = CPU_FTRS_440x6, |
464076a4 | 1637 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
7c03d653 | 1638 | .mmu_features = MMU_FTR_TYPE_44x, |
464076a4 SR |
1639 | .icache_bsize = 32, |
1640 | .dcache_bsize = 32, | |
1641 | .cpu_setup = __setup_cpu_460ex, | |
1642 | .machine_check = machine_check_440A, | |
1643 | .platform = "ppc440", | |
1644 | }, | |
1645 | { /* 460GT */ | |
1646 | .pvr_mask = 0xffff0002, | |
1647 | .pvr_value = 0x13020000, | |
1648 | .cpu_name = "460GT", | |
6d2170be | 1649 | .cpu_features = CPU_FTRS_440x6, |
939e622c | 1650 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, |
7c03d653 | 1651 | .mmu_features = MMU_FTR_TYPE_44x, |
464076a4 SR |
1652 | .icache_bsize = 32, |
1653 | .dcache_bsize = 32, | |
939e622c | 1654 | .cpu_setup = __setup_cpu_460gt, |
464076a4 SR |
1655 | .machine_check = machine_check_440A, |
1656 | .platform = "ppc440", | |
1657 | }, | |
6c712090 MM |
1658 | { /* 460SX */ |
1659 | .pvr_mask = 0xffffff00, | |
1660 | .pvr_value = 0x13541800, | |
1661 | .cpu_name = "460SX", | |
1662 | .cpu_features = CPU_FTRS_44X, | |
1663 | .cpu_user_features = COMMON_USER_BOOKE, | |
1664 | .mmu_features = MMU_FTR_TYPE_44x, | |
1665 | .icache_bsize = 32, | |
1666 | .dcache_bsize = 32, | |
1667 | .cpu_setup = __setup_cpu_460sx, | |
1668 | .machine_check = machine_check_440A, | |
1669 | .platform = "ppc440", | |
1670 | }, | |
76bc080e BH |
1671 | { /* default match */ |
1672 | .pvr_mask = 0x00000000, | |
1673 | .pvr_value = 0x00000000, | |
1674 | .cpu_name = "(generic 44x PPC)", | |
1675 | .cpu_features = CPU_FTRS_44X, | |
1676 | .cpu_user_features = COMMON_USER_BOOKE, | |
7c03d653 | 1677 | .mmu_features = MMU_FTR_TYPE_44x, |
76bc080e BH |
1678 | .icache_bsize = 32, |
1679 | .dcache_bsize = 32, | |
1680 | .machine_check = machine_check_4xx, | |
1681 | .platform = "ppc440", | |
1682 | } | |
1da177e4 | 1683 | #endif /* CONFIG_44x */ |
e3e414bc | 1684 | #ifdef CONFIG_E200 |
4920960f | 1685 | { /* e200z5 */ |
33d9e9b5 KG |
1686 | .pvr_mask = 0xfff00000, |
1687 | .pvr_value = 0x81000000, | |
1688 | .cpu_name = "e200z5", | |
1689 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ | |
10b35d99 | 1690 | .cpu_features = CPU_FTRS_E200, |
80f15dc7 PM |
1691 | .cpu_user_features = COMMON_USER_BOOKE | |
1692 | PPC_FEATURE_HAS_EFP_SINGLE | | |
33d9e9b5 | 1693 | PPC_FEATURE_UNIFIED_CACHE, |
7c03d653 | 1694 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
33d9e9b5 | 1695 | .dcache_bsize = 32, |
47c0bd1a | 1696 | .machine_check = machine_check_e200, |
80f15dc7 | 1697 | .platform = "ppc5554", |
33d9e9b5 | 1698 | }, |
4920960f | 1699 | { /* e200z6 */ |
33d9e9b5 KG |
1700 | .pvr_mask = 0xfff00000, |
1701 | .pvr_value = 0x81100000, | |
1702 | .cpu_name = "e200z6", | |
1703 | /* xxx - galak: add CPU_FTR_MAYBE_CAN_DOZE */ | |
10b35d99 | 1704 | .cpu_features = CPU_FTRS_E200, |
80f15dc7 | 1705 | .cpu_user_features = COMMON_USER_BOOKE | |
5e14d21e KG |
1706 | PPC_FEATURE_HAS_SPE_COMP | |
1707 | PPC_FEATURE_HAS_EFP_SINGLE_COMP | | |
33d9e9b5 | 1708 | PPC_FEATURE_UNIFIED_CACHE, |
7c03d653 | 1709 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
33d9e9b5 | 1710 | .dcache_bsize = 32, |
47c0bd1a | 1711 | .machine_check = machine_check_e200, |
80f15dc7 | 1712 | .platform = "ppc5554", |
33d9e9b5 | 1713 | }, |
76bc080e BH |
1714 | { /* default match */ |
1715 | .pvr_mask = 0x00000000, | |
1716 | .pvr_value = 0x00000000, | |
1717 | .cpu_name = "(generic E200 PPC)", | |
1718 | .cpu_features = CPU_FTRS_E200, | |
1719 | .cpu_user_features = COMMON_USER_BOOKE | | |
1720 | PPC_FEATURE_HAS_EFP_SINGLE | | |
1721 | PPC_FEATURE_UNIFIED_CACHE, | |
7c03d653 | 1722 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
76bc080e | 1723 | .dcache_bsize = 32, |
105c31df | 1724 | .cpu_setup = __setup_cpu_e200, |
76bc080e BH |
1725 | .machine_check = machine_check_e200, |
1726 | .platform = "ppc5554", | |
516c8be3 | 1727 | } |
76bc080e BH |
1728 | #endif /* CONFIG_E200 */ |
1729 | #ifdef CONFIG_E500 | |
4920960f | 1730 | { /* e500 */ |
1da177e4 LT |
1731 | .pvr_mask = 0xffff0000, |
1732 | .pvr_value = 0x80200000, | |
1733 | .cpu_name = "e500", | |
10b35d99 | 1734 | .cpu_features = CPU_FTRS_E500, |
80f15dc7 | 1735 | .cpu_user_features = COMMON_USER_BOOKE | |
5e14d21e KG |
1736 | PPC_FEATURE_HAS_SPE_COMP | |
1737 | PPC_FEATURE_HAS_EFP_SINGLE_COMP, | |
7c03d653 | 1738 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
1da177e4 LT |
1739 | .icache_bsize = 32, |
1740 | .dcache_bsize = 32, | |
1741 | .num_pmcs = 4, | |
555d97ac | 1742 | .oprofile_cpu_type = "ppc/e500", |
39aef685 | 1743 | .oprofile_type = PPC_OPROFILE_FSL_EMB, |
105c31df | 1744 | .cpu_setup = __setup_cpu_e500v1, |
47c0bd1a | 1745 | .machine_check = machine_check_e500, |
80f15dc7 | 1746 | .platform = "ppc8540", |
1da177e4 | 1747 | }, |
4920960f | 1748 | { /* e500v2 */ |
5b37b700 KG |
1749 | .pvr_mask = 0xffff0000, |
1750 | .pvr_value = 0x80210000, | |
1751 | .cpu_name = "e500v2", | |
10b35d99 | 1752 | .cpu_features = CPU_FTRS_E500_2, |
80f15dc7 | 1753 | .cpu_user_features = COMMON_USER_BOOKE | |
5e14d21e KG |
1754 | PPC_FEATURE_HAS_SPE_COMP | |
1755 | PPC_FEATURE_HAS_EFP_SINGLE_COMP | | |
1756 | PPC_FEATURE_HAS_EFP_DOUBLE_COMP, | |
7c03d653 | 1757 | .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS, |
5b37b700 KG |
1758 | .icache_bsize = 32, |
1759 | .dcache_bsize = 32, | |
1760 | .num_pmcs = 4, | |
555d97ac | 1761 | .oprofile_cpu_type = "ppc/e500", |
39aef685 | 1762 | .oprofile_type = PPC_OPROFILE_FSL_EMB, |
105c31df | 1763 | .cpu_setup = __setup_cpu_e500v2, |
47c0bd1a | 1764 | .machine_check = machine_check_e500, |
80f15dc7 | 1765 | .platform = "ppc8548", |
5b37b700 | 1766 | }, |
3dfa8773 KG |
1767 | { /* e500mc */ |
1768 | .pvr_mask = 0xffff0000, | |
1769 | .pvr_value = 0x80230000, | |
1770 | .cpu_name = "e500mc", | |
3dfa8773 KG |
1771 | .cpu_features = CPU_FTRS_E500MC, |
1772 | .cpu_user_features = COMMON_USER_BOOKE | PPC_FEATURE_HAS_FPU, | |
c3071951 | 1773 | .mmu_features = MMU_FTR_TYPE_FSL_E | MMU_FTR_BIG_PHYS | |
323d23ae | 1774 | MMU_FTR_USE_TLBILX, |
3dfa8773 KG |
1775 | .icache_bsize = 64, |
1776 | .dcache_bsize = 64, | |
1777 | .num_pmcs = 4, | |
1778 | .oprofile_cpu_type = "ppc/e500", /* xxx - galak, e500mc? */ | |
1779 | .oprofile_type = PPC_OPROFILE_FSL_EMB, | |
105c31df | 1780 | .cpu_setup = __setup_cpu_e500mc, |
3dfa8773 KG |
1781 | .machine_check = machine_check_e500, |
1782 | .platform = "ppce500mc", | |
1783 | }, | |
1da177e4 LT |
1784 | { /* default match */ |
1785 | .pvr_mask = 0x00000000, | |
1786 | .pvr_value = 0x00000000, | |
76bc080e BH |
1787 | .cpu_name = "(generic E500 PPC)", |
1788 | .cpu_features = CPU_FTRS_E500, | |
1789 | .cpu_user_features = COMMON_USER_BOOKE | | |
1790 | PPC_FEATURE_HAS_SPE_COMP | | |
1791 | PPC_FEATURE_HAS_EFP_SINGLE_COMP, | |
7c03d653 | 1792 | .mmu_features = MMU_FTR_TYPE_FSL_E, |
1da177e4 LT |
1793 | .icache_bsize = 32, |
1794 | .dcache_bsize = 32, | |
76bc080e | 1795 | .machine_check = machine_check_e500, |
80f15dc7 | 1796 | .platform = "powerpc", |
516c8be3 | 1797 | } |
76bc080e | 1798 | #endif /* CONFIG_E500 */ |
4920960f | 1799 | #endif /* CONFIG_PPC32 */ |
1da177e4 | 1800 | }; |
42c4aaad | 1801 | |
87a72f9e PM |
1802 | static struct cpu_spec the_cpu_spec; |
1803 | ||
666435bb | 1804 | static void __init setup_cpu_spec(unsigned long offset, struct cpu_spec *s) |
42c4aaad | 1805 | { |
87a72f9e | 1806 | struct cpu_spec *t = &the_cpu_spec; |
2657dd4e ME |
1807 | struct cpu_spec old; |
1808 | ||
87a72f9e | 1809 | t = PTRRELOC(t); |
2657dd4e ME |
1810 | old = *t; |
1811 | ||
1812 | /* Copy everything, then do fixups */ | |
1813 | *t = *s; | |
42c4aaad | 1814 | |
666435bb ME |
1815 | /* |
1816 | * If we are overriding a previous value derived from the real | |
1817 | * PVR with a new value obtained using a logical PVR value, | |
1818 | * don't modify the performance monitor fields. | |
1819 | */ | |
2657dd4e ME |
1820 | if (old.num_pmcs && !s->num_pmcs) { |
1821 | t->num_pmcs = old.num_pmcs; | |
1822 | t->pmc_type = old.pmc_type; | |
1823 | t->oprofile_type = old.oprofile_type; | |
1824 | t->oprofile_mmcra_sihv = old.oprofile_mmcra_sihv; | |
1825 | t->oprofile_mmcra_sipr = old.oprofile_mmcra_sipr; | |
1826 | t->oprofile_mmcra_clear = old.oprofile_mmcra_clear; | |
1827 | ||
666435bb ME |
1828 | /* |
1829 | * If we have passed through this logic once before and | |
1830 | * have pulled the default case because the real PVR was | |
1831 | * not found inside cpu_specs[], then we are possibly | |
1832 | * running in compatibility mode. In that case, let the | |
1833 | * oprofiler know which set of compatibility counters to | |
1834 | * pull from by making sure the oprofile_cpu_type string | |
1835 | * is set to that of compatibility mode. If the | |
1836 | * oprofile_cpu_type already has a value, then we are | |
1837 | * possibly overriding a real PVR with a logical one, | |
1838 | * and, in that case, keep the current value for | |
1839 | * oprofile_cpu_type. | |
1840 | */ | |
b173f03d | 1841 | if (old.oprofile_cpu_type != NULL) { |
0203d6ec BH |
1842 | t->oprofile_cpu_type = old.oprofile_cpu_type; |
1843 | t->oprofile_type = old.oprofile_type; | |
79af6c49 | 1844 | } |
2657dd4e | 1845 | } |
666435bb ME |
1846 | |
1847 | *PTRRELOC(&cur_cpu_spec) = &the_cpu_spec; | |
9115d134 | 1848 | |
666435bb ME |
1849 | /* |
1850 | * Set the base platform string once; assumes | |
1851 | * we're called with real pvr first. | |
1852 | */ | |
1853 | if (*PTRRELOC(&powerpc_base_platform) == NULL) | |
1854 | *PTRRELOC(&powerpc_base_platform) = t->platform; | |
9115d134 | 1855 | |
84e3ad5b | 1856 | #if defined(CONFIG_PPC64) || defined(CONFIG_BOOKE) |
666435bb ME |
1857 | /* ppc64 and booke expect identify_cpu to also call setup_cpu for |
1858 | * that processor. I will consolidate that at a later time, for now, | |
1859 | * just use #ifdef. We also don't need to PTRRELOC the function | |
1860 | * pointer on ppc64 and booke as we are running at 0 in real mode | |
1861 | * on ppc64 and reloc_offset is always 0 on booke. | |
1862 | */ | |
1863 | if (s->cpu_setup) { | |
1864 | s->cpu_setup(offset, s); | |
1865 | } | |
84e3ad5b | 1866 | #endif /* CONFIG_PPC64 || CONFIG_BOOKE */ |
666435bb ME |
1867 | } |
1868 | ||
1869 | struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr) | |
1870 | { | |
1871 | struct cpu_spec *s = cpu_specs; | |
1872 | int i; | |
1873 | ||
1874 | s = PTRRELOC(s); | |
1875 | ||
1876 | for (i = 0; i < ARRAY_SIZE(cpu_specs); i++,s++) { | |
1877 | if ((pvr & s->pvr_mask) == s->pvr_value) { | |
1878 | setup_cpu_spec(offset, s); | |
42c4aaad BH |
1879 | return s; |
1880 | } | |
666435bb ME |
1881 | } |
1882 | ||
42c4aaad | 1883 | BUG(); |
666435bb | 1884 | |
42c4aaad BH |
1885 | return NULL; |
1886 | } |