Lines 254-260
intel_check_word (int name, unsigned int value, bool *has_level_2,
Link Here
|
254 |
static long int __attribute__ ((noinline)) |
254 |
static long int __attribute__ ((noinline)) |
255 |
handle_intel (int name, unsigned int maxidx) |
255 |
handle_intel (int name, unsigned int maxidx) |
256 |
{ |
256 |
{ |
257 |
assert (maxidx >= 2); |
257 |
if (maxidx < 2) |
|
|
258 |
{ |
259 |
/* This should never happen as all Intel i686 CPU support a CPUID |
260 |
level of 2 minimum. However valgrind sometimes load the i686 |
261 |
library with a P55C CPUID. Return 0 in that case. */ |
262 |
return 0; |
263 |
} |
258 |
|
264 |
|
259 |
/* OK, we can use the CPUID instruction to get all info about the |
265 |
/* OK, we can use the CPUID instruction to get all info about the |
260 |
caches. */ |
266 |
caches. */ |