Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * arch/ppc64/kernel/cputable.c |
| 3 | * |
| 4 | * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) |
| 5 | * |
| 6 | * Modifications for ppc64: |
| 7 | * Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com> |
Stephen Rothwell | 8d15a3e | 2005-08-03 14:40:16 +1000 | [diff] [blame] | 8 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | * This program is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License |
| 11 | * as published by the Free Software Foundation; either version |
| 12 | * 2 of the License, or (at your option) any later version. |
| 13 | */ |
| 14 | |
| 15 | #include <linux/config.h> |
| 16 | #include <linux/string.h> |
| 17 | #include <linux/sched.h> |
| 18 | #include <linux/threads.h> |
| 19 | #include <linux/init.h> |
| 20 | #include <linux/module.h> |
| 21 | |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 22 | #include <asm/oprofile_impl.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | #include <asm/cputable.h> |
| 24 | |
| 25 | struct cpu_spec* cur_cpu_spec = NULL; |
| 26 | EXPORT_SYMBOL(cur_cpu_spec); |
| 27 | |
| 28 | /* NOTE: |
| 29 | * Unlike ppc32, ppc64 will only call this once for the boot CPU, it's |
| 30 | * the responsibility of the appropriate CPU save/restore functions to |
| 31 | * eventually copy these settings over. Those save/restore aren't yet |
| 32 | * part of the cputable though. That has to be fixed for both ppc32 |
| 33 | * and ppc64 |
| 34 | */ |
| 35 | extern void __setup_cpu_power3(unsigned long offset, struct cpu_spec* spec); |
| 36 | extern void __setup_cpu_power4(unsigned long offset, struct cpu_spec* spec); |
| 37 | extern void __setup_cpu_ppc970(unsigned long offset, struct cpu_spec* spec); |
Arnd Bergmann | fef1c77 | 2005-06-23 09:43:37 +1000 | [diff] [blame] | 38 | extern void __setup_cpu_be(unsigned long offset, struct cpu_spec* spec); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | struct cpu_spec cpu_specs[] = { |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 41 | { /* Power3 */ |
| 42 | .pvr_mask = 0xffff0000, |
| 43 | .pvr_value = 0x00400000, |
| 44 | .cpu_name = "POWER3 (630)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 45 | .cpu_features = CPU_FTRS_POWER3, |
| 46 | .cpu_user_features = COMMON_USER_PPC64, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 47 | .icache_bsize = 128, |
| 48 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 49 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 50 | .cpu_setup = __setup_cpu_power3, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 51 | #ifdef CONFIG_OPROFILE |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 52 | .oprofile_cpu_type = "ppc64/power3", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 53 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 54 | #endif |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 55 | }, |
| 56 | { /* Power3+ */ |
| 57 | .pvr_mask = 0xffff0000, |
| 58 | .pvr_value = 0x00410000, |
| 59 | .cpu_name = "POWER3 (630+)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 60 | .cpu_features = CPU_FTRS_POWER3, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 61 | .cpu_user_features = COMMON_USER_PPC64, |
| 62 | .icache_bsize = 128, |
| 63 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 64 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 65 | .cpu_setup = __setup_cpu_power3, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 66 | #ifdef CONFIG_OPROFILE |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 67 | .oprofile_cpu_type = "ppc64/power3", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 68 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 69 | #endif |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 70 | }, |
| 71 | { /* Northstar */ |
| 72 | .pvr_mask = 0xffff0000, |
| 73 | .pvr_value = 0x00330000, |
| 74 | .cpu_name = "RS64-II (northstar)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 75 | .cpu_features = CPU_FTRS_RS64, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 76 | .cpu_user_features = COMMON_USER_PPC64, |
| 77 | .icache_bsize = 128, |
| 78 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 79 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 80 | .cpu_setup = __setup_cpu_power3, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 81 | #ifdef CONFIG_OPROFILE |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 82 | .oprofile_cpu_type = "ppc64/rs64", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 83 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 84 | #endif |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 85 | }, |
| 86 | { /* Pulsar */ |
| 87 | .pvr_mask = 0xffff0000, |
| 88 | .pvr_value = 0x00340000, |
| 89 | .cpu_name = "RS64-III (pulsar)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 90 | .cpu_features = CPU_FTRS_RS64, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 91 | .cpu_user_features = COMMON_USER_PPC64, |
| 92 | .icache_bsize = 128, |
| 93 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 94 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 95 | .cpu_setup = __setup_cpu_power3, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 96 | #ifdef CONFIG_OPROFILE |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 97 | .oprofile_cpu_type = "ppc64/rs64", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 98 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 99 | #endif |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 100 | }, |
| 101 | { /* I-star */ |
| 102 | .pvr_mask = 0xffff0000, |
| 103 | .pvr_value = 0x00360000, |
| 104 | .cpu_name = "RS64-III (icestar)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 105 | .cpu_features = CPU_FTRS_RS64, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 106 | .cpu_user_features = COMMON_USER_PPC64, |
| 107 | .icache_bsize = 128, |
| 108 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 109 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 110 | .cpu_setup = __setup_cpu_power3, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 111 | #ifdef CONFIG_OPROFILE |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 112 | .oprofile_cpu_type = "ppc64/rs64", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 113 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 114 | #endif |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 115 | }, |
| 116 | { /* S-star */ |
| 117 | .pvr_mask = 0xffff0000, |
| 118 | .pvr_value = 0x00370000, |
| 119 | .cpu_name = "RS64-IV (sstar)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 120 | .cpu_features = CPU_FTRS_RS64, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 121 | .cpu_user_features = COMMON_USER_PPC64, |
| 122 | .icache_bsize = 128, |
| 123 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 124 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 125 | .cpu_setup = __setup_cpu_power3, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 126 | #ifdef CONFIG_OPROFILE |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 127 | .oprofile_cpu_type = "ppc64/rs64", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 128 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 129 | #endif |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 130 | }, |
| 131 | { /* Power4 */ |
| 132 | .pvr_mask = 0xffff0000, |
| 133 | .pvr_value = 0x00350000, |
| 134 | .cpu_name = "POWER4 (gp)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 135 | .cpu_features = CPU_FTRS_POWER4, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 136 | .cpu_user_features = COMMON_USER_PPC64, |
| 137 | .icache_bsize = 128, |
| 138 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 139 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 140 | .cpu_setup = __setup_cpu_power4, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 141 | #ifdef CONFIG_OPROFILE |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 142 | .oprofile_cpu_type = "ppc64/power4", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 143 | .oprofile_model = &op_model_rs64, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 144 | #endif |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 145 | }, |
| 146 | { /* Power4+ */ |
| 147 | .pvr_mask = 0xffff0000, |
| 148 | .pvr_value = 0x00380000, |
| 149 | .cpu_name = "POWER4+ (gq)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 150 | .cpu_features = CPU_FTRS_POWER4, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 151 | .cpu_user_features = COMMON_USER_PPC64, |
| 152 | .icache_bsize = 128, |
| 153 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 154 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 155 | .cpu_setup = __setup_cpu_power4, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 156 | #ifdef CONFIG_OPROFILE |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 157 | .oprofile_cpu_type = "ppc64/power4", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 158 | .oprofile_model = &op_model_power4, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 159 | #endif |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 160 | }, |
| 161 | { /* PPC970 */ |
| 162 | .pvr_mask = 0xffff0000, |
| 163 | .pvr_value = 0x00390000, |
| 164 | .cpu_name = "PPC970", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 165 | .cpu_features = CPU_FTRS_PPC970, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 166 | .cpu_user_features = COMMON_USER_PPC64 | |
| 167 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
| 168 | .icache_bsize = 128, |
| 169 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 170 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 171 | .cpu_setup = __setup_cpu_ppc970, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 172 | #ifdef CONFIG_OPROFILE |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 173 | .oprofile_cpu_type = "ppc64/970", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 174 | .oprofile_model = &op_model_power4, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 175 | #endif |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 176 | }, |
| 177 | { /* PPC970FX */ |
| 178 | .pvr_mask = 0xffff0000, |
| 179 | .pvr_value = 0x003c0000, |
| 180 | .cpu_name = "PPC970FX", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 181 | .cpu_features = CPU_FTRS_PPC970, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 182 | .cpu_user_features = COMMON_USER_PPC64 | |
| 183 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
| 184 | .icache_bsize = 128, |
| 185 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 186 | .num_pmcs = 8, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 187 | .cpu_setup = __setup_cpu_ppc970, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 188 | #ifdef CONFIG_OPROFILE |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 189 | .oprofile_cpu_type = "ppc64/970", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 190 | .oprofile_model = &op_model_power4, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 191 | #endif |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 192 | }, |
Olof Johansson | f264cc2 | 2005-07-13 01:11:44 -0700 | [diff] [blame] | 193 | { /* PPC970MP */ |
| 194 | .pvr_mask = 0xffff0000, |
| 195 | .pvr_value = 0x00440000, |
| 196 | .cpu_name = "PPC970MP", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 197 | .cpu_features = CPU_FTRS_PPC970, |
Olof Johansson | f264cc2 | 2005-07-13 01:11:44 -0700 | [diff] [blame] | 198 | .cpu_user_features = COMMON_USER_PPC64 | |
| 199 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
| 200 | .icache_bsize = 128, |
| 201 | .dcache_bsize = 128, |
| 202 | .cpu_setup = __setup_cpu_ppc970, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 203 | #ifdef CONFIG_OPROFILE |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 204 | .oprofile_cpu_type = "ppc64/970", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 205 | .oprofile_model = &op_model_power4, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 206 | #endif |
Olof Johansson | f264cc2 | 2005-07-13 01:11:44 -0700 | [diff] [blame] | 207 | }, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 208 | { /* Power5 */ |
| 209 | .pvr_mask = 0xffff0000, |
| 210 | .pvr_value = 0x003a0000, |
| 211 | .cpu_name = "POWER5 (gr)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 212 | .cpu_features = CPU_FTRS_POWER5, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 213 | .cpu_user_features = COMMON_USER_PPC64, |
| 214 | .icache_bsize = 128, |
| 215 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 216 | .num_pmcs = 6, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 217 | .cpu_setup = __setup_cpu_power4, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 218 | #ifdef CONFIG_OPROFILE |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 219 | .oprofile_cpu_type = "ppc64/power5", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 220 | .oprofile_model = &op_model_power4, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 221 | #endif |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 222 | }, |
| 223 | { /* Power5 */ |
| 224 | .pvr_mask = 0xffff0000, |
| 225 | .pvr_value = 0x003b0000, |
| 226 | .cpu_name = "POWER5 (gs)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 227 | .cpu_features = CPU_FTRS_POWER5, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 228 | .cpu_user_features = COMMON_USER_PPC64, |
| 229 | .icache_bsize = 128, |
| 230 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 231 | .num_pmcs = 6, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 232 | .cpu_setup = __setup_cpu_power4, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 233 | #ifdef CONFIG_OPROFILE |
Anton Blanchard | 1a410d8 | 2005-09-06 14:53:57 +1000 | [diff] [blame] | 234 | .oprofile_cpu_type = "ppc64/power5", |
Anton Blanchard | 8fef030 | 2005-09-06 14:57:52 +1000 | [diff] [blame] | 235 | .oprofile_model = &op_model_power4, |
Anton Blanchard | 0fdf0b8 | 2005-09-06 14:59:16 +1000 | [diff] [blame] | 236 | #endif |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 237 | }, |
| 238 | { /* BE DD1.x */ |
| 239 | .pvr_mask = 0xffff0000, |
| 240 | .pvr_value = 0x00700000, |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 241 | .cpu_name = "Cell Broadband Engine", |
| 242 | .cpu_features = CPU_FTRS_CELL, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 243 | .cpu_user_features = COMMON_USER_PPC64 | |
| 244 | PPC_FEATURE_HAS_ALTIVEC_COMP, |
| 245 | .icache_bsize = 128, |
| 246 | .dcache_bsize = 128, |
| 247 | .cpu_setup = __setup_cpu_be, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 248 | }, |
| 249 | { /* default match */ |
| 250 | .pvr_mask = 0x00000000, |
| 251 | .pvr_value = 0x00000000, |
| 252 | .cpu_name = "POWER4 (compatible)", |
Kumar Gala | 10b35d9 | 2005-09-23 14:08:58 -0500 | [diff] [blame] | 253 | .cpu_features = CPU_FTRS_COMPATIBLE, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 254 | .cpu_user_features = COMMON_USER_PPC64, |
| 255 | .icache_bsize = 128, |
| 256 | .dcache_bsize = 128, |
Anton Blanchard | fd5b437 | 2005-09-06 14:47:49 +1000 | [diff] [blame] | 257 | .num_pmcs = 6, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 258 | .cpu_setup = __setup_cpu_power4, |
Anton Blanchard | 315a699 | 2005-07-07 17:56:11 -0700 | [diff] [blame] | 259 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 260 | }; |