Go to the source code of this file.
◆ PVR_PROCESSOR_SHIFT
| #define PVR_PROCESSOR_SHIFT 16 |
◆ SPRN_PVR
| #define SPRN_PVR 0x11F /* Processor Version Register */ |
◆ get_cache_info()
Definition at line 237 of file powerpc_cpu_utils.c.
238{
241
242 if (clevel_ptr) {
244 }
245
246 switch(pvr) {
247 case 0x39:
248 case 0x3C:
249 case 0x44:
250 case 0x45:
252 break;
253 case 0x3A:
254 case 0x3B:
256 break;
257 case 0x3E:
259 break;
260 case 0x3F:
262 break;
263 case 0x4b:
265 break;
266 case 0x4e:
268 break;
269 case 0x80:
271 break;
272 default:
274 }
275
277}
int cpu_get_cache_info(CPU_attr_e attr, int level, _sysdetect_cache_level_info_t *clevel_ptr, int *value)
_sysdetect_cache_level_info_t power6_cache_info[]
_sysdetect_cache_level_info_t power5_cache_info[]
_sysdetect_cache_level_info_t power9_cache_info[]
_sysdetect_cache_level_info_t power8_cache_info[]
_sysdetect_cache_level_info_t power7_cache_info[]
_sysdetect_cache_level_info_t ppc970_cache_info[]
_sysdetect_cache_level_info_t power10_cache_info[]
static unsigned int mfpvr(void)
#define PVR_PROCESSOR_SHIFT
◆ mfpvr()
| unsigned int mfpvr |
( |
void |
| ) |
|
|
static |
Definition at line 280 of file powerpc_cpu_utils.c.
281{
282 unsigned long pvr;
283 __asm__ ("mfspr %0,%1"
284 : "=r" (pvr)
286 return pvr;
287}
◆ powerpc_cpu_finalize()
| int powerpc_cpu_finalize |
( |
void |
| ) |
|
◆ powerpc_cpu_get_attribute()
Definition at line 197 of file powerpc_cpu_utils.c.
198{
200}
int os_cpu_get_attribute(CPU_attr_e attr, int *value)
◆ powerpc_cpu_get_attribute_at()
Definition at line 203 of file powerpc_cpu_utils.c.
204{
206
207 switch(attr) {
224 break;
228 break;
229 default:
231 }
232
233 return status;
234}
@ CPU_ATTR__CACHE_INST_TOT_SIZE
@ CPU_ATTR__HWTHREAD_NUMA_AFFINITY
@ CPU_ATTR__CACHE_UNIF_TOT_SIZE
@ CPU_ATTR__CACHE_DATA_ASSOCIATIVITY
@ CPU_ATTR__CACHE_INST_LINE_SIZE
@ CPU_ATTR__NUMA_MEM_SIZE
@ CPU_ATTR__CACHE_UNIF_LINE_SIZE
@ CPU_ATTR__CACHE_DATA_NUM_LINES
@ CPU_ATTR__CACHE_UNIF_ASSOCIATIVITY
@ CPU_ATTR__CACHE_INST_PRESENT
@ CPU_ATTR__CACHE_DATA_PRESENT
@ CPU_ATTR__CACHE_DATA_LINE_SIZE
@ CPU_ATTR__CACHE_INST_ASSOCIATIVITY
@ CPU_ATTR__CACHE_INST_NUM_LINES
@ CPU_ATTR__CACHE_UNIF_NUM_LINES
@ CPU_ATTR__CACHE_DATA_TOT_SIZE
@ CPU_ATTR__CACHE_UNIF_PRESENT
int os_cpu_get_attribute_at(CPU_attr_e attr, int loc, int *value)
static int get_cache_info(CPU_attr_e attr, int level, int *value)
◆ powerpc_cpu_get_name()
| int powerpc_cpu_get_name |
( |
char * |
name | ) |
|
◆ powerpc_cpu_get_vendor()
| int powerpc_cpu_get_vendor |
( |
char * |
vendor | ) |
|
◆ powerpc_cpu_init()
| int powerpc_cpu_init |
( |
void |
| ) |
|
◆ power10_cache_info
Initial value:= {
{
2,
{
}
},
{
1,
{
}
},
{
1,
{
}
},
}
#define PAPI_MH_TYPE_DATA
#define PAPI_MH_TYPE_INST
#define PAPI_MH_TYPE_EMPTY
#define PAPI_MH_TYPE_UNIFIED
Definition at line 142 of file powerpc_cpu_utils.c.
◆ power5_cache_info
Initial value:= {
{
2,
{
}
},
{
1,
{
}
},
{
1,
{
}
},
}
Definition at line 22 of file powerpc_cpu_utils.c.
◆ power6_cache_info
Initial value:= {
{
2,
{
}
},
{
1,
{
}
},
{
1,
{
}
},
}
Definition at line 46 of file powerpc_cpu_utils.c.
◆ power7_cache_info
Initial value:= {
{
2,
{
}
},
{
1,
{
}
},
{
1,
{
}
},
}
Definition at line 70 of file powerpc_cpu_utils.c.
◆ power8_cache_info
Initial value:= {
{
2,
{
}
},
{
1,
{
}
},
{
1,
{
}
},
}
Definition at line 94 of file powerpc_cpu_utils.c.
◆ power9_cache_info
◆ ppc970_cache_info