2004-08-05 00:07:47 +00:00
|
|
|
/* small utility to extract CPU information
|
2005-11-23 19:29:11 +00:00
|
|
|
Used by configure to set CPU optimization levels on some operating
|
|
|
|
systems where /proc/cpuinfo is non-existent or unreliable. */
|
2001-06-05 18:40:44 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <sys/time.h>
|
2005-11-23 19:21:11 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2006-05-14 20:24:47 +00:00
|
|
|
#include <unistd.h>
|
2001-06-05 18:40:44 +00:00
|
|
|
|
2006-07-05 22:47:47 +00:00
|
|
|
#if defined(__MINGW32__) && (__MINGW32_MAJOR_VERSION <= 3) && (__MINGW32_MINOR_VERSION < 10)
|
2003-03-30 20:48:51 +00:00
|
|
|
#include <sys/timeb.h>
|
2005-11-23 19:29:11 +00:00
|
|
|
void gettimeofday(struct timeval* t,void* timezone) {
|
|
|
|
struct timeb timebuffer;
|
|
|
|
ftime( &timebuffer );
|
|
|
|
t->tv_sec=timebuffer.time;
|
|
|
|
t->tv_usec=1000*timebuffer.millitm;
|
2003-03-30 20:48:51 +00:00
|
|
|
}
|
2006-07-07 09:22:53 +00:00
|
|
|
#endif
|
|
|
|
#ifdef __MINGW32__
|
2003-03-30 20:48:51 +00:00
|
|
|
#define MISSING_USLEEP
|
2006-12-10 14:04:27 +00:00
|
|
|
#include <windows.h>
|
|
|
|
#define sleep(t) Sleep(1000*t);
|
2003-03-30 20:48:51 +00:00
|
|
|
#endif
|
|
|
|
|
2004-10-11 19:26:13 +00:00
|
|
|
#ifdef __BEOS__
|
|
|
|
#define usleep(t) snooze(t)
|
|
|
|
#endif
|
|
|
|
|
2001-06-05 18:40:44 +00:00
|
|
|
#ifdef M_UNIX
|
|
|
|
typedef long long int64_t;
|
2005-11-23 19:29:11 +00:00
|
|
|
#define MISSING_USLEEP
|
2001-06-05 18:40:44 +00:00
|
|
|
#else
|
|
|
|
#include <inttypes.h>
|
|
|
|
#endif
|
|
|
|
|
2006-09-29 12:34:38 +00:00
|
|
|
#define CPUID_FEATURE_DEF(bit, desc, description) \
|
|
|
|
{ bit, desc }
|
2001-06-05 18:40:44 +00:00
|
|
|
|
|
|
|
typedef struct cpuid_regs {
|
2005-11-23 19:29:11 +00:00
|
|
|
unsigned int eax;
|
|
|
|
unsigned int ebx;
|
|
|
|
unsigned int ecx;
|
|
|
|
unsigned int edx;
|
2001-06-05 18:40:44 +00:00
|
|
|
} cpuid_regs_t;
|
|
|
|
|
|
|
|
static cpuid_regs_t
|
|
|
|
cpuid(int func) {
|
2005-11-23 19:29:11 +00:00
|
|
|
cpuid_regs_t regs;
|
|
|
|
#define CPUID ".byte 0x0f, 0xa2; "
|
2006-05-17 20:15:02 +00:00
|
|
|
#ifdef __x86_64__
|
|
|
|
asm("mov %%rbx, %%rsi\n\t"
|
|
|
|
#else
|
2007-05-21 07:47:53 +00:00
|
|
|
asm("mov %%ebx, %%esi\n\t"
|
2006-05-17 20:15:02 +00:00
|
|
|
#endif
|
2006-05-15 15:10:23 +00:00
|
|
|
CPUID"\n\t"
|
2006-05-17 20:15:02 +00:00
|
|
|
#ifdef __x86_64__
|
|
|
|
"xchg %%rsi, %%rbx\n\t"
|
|
|
|
#else
|
|
|
|
"xchg %%esi, %%ebx\n\t"
|
|
|
|
#endif
|
2006-05-15 15:10:23 +00:00
|
|
|
: "=a" (regs.eax), "=S" (regs.ebx), "=c" (regs.ecx), "=d" (regs.edx)
|
2006-05-14 20:24:47 +00:00
|
|
|
: "0" (func));
|
2005-11-23 19:29:11 +00:00
|
|
|
return regs;
|
2001-06-05 18:40:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static int64_t
|
|
|
|
rdtsc(void)
|
|
|
|
{
|
2006-06-29 14:47:07 +00:00
|
|
|
uint64_t i;
|
2005-11-23 19:29:11 +00:00
|
|
|
#define RDTSC ".byte 0x0f, 0x31; "
|
2006-06-29 14:47:07 +00:00
|
|
|
asm volatile (RDTSC : "=A"(i) : );
|
|
|
|
return i;
|
2001-06-05 18:40:44 +00:00
|
|
|
}
|
|
|
|
|
2006-05-14 20:24:47 +00:00
|
|
|
static const char*
|
|
|
|
brandname(int i)
|
|
|
|
{
|
|
|
|
const static char* brandmap[] = {
|
|
|
|
NULL,
|
|
|
|
"Intel(R) Celeron(R) processor",
|
|
|
|
"Intel(R) Pentium(R) III processor",
|
|
|
|
"Intel(R) Pentium(R) III Xeon(tm) processor",
|
|
|
|
"Intel(R) Pentium(R) III processor",
|
|
|
|
NULL,
|
|
|
|
"Mobile Intel(R) Pentium(R) III processor-M",
|
|
|
|
"Mobile Intel(R) Celeron(R) processor"
|
|
|
|
};
|
|
|
|
|
|
|
|
if (i >= sizeof(brandmap))
|
|
|
|
return NULL;
|
|
|
|
else
|
|
|
|
return brandmap[i];
|
|
|
|
}
|
2001-06-05 18:40:44 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
store32(char *d, unsigned int v)
|
|
|
|
{
|
2005-11-23 19:29:11 +00:00
|
|
|
d[0] = v & 0xff;
|
|
|
|
d[1] = (v >> 8) & 0xff;
|
|
|
|
d[2] = (v >> 16) & 0xff;
|
|
|
|
d[3] = (v >> 24) & 0xff;
|
2001-06-05 18:40:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, char **argv)
|
|
|
|
{
|
2005-11-23 19:29:11 +00:00
|
|
|
cpuid_regs_t regs, regs_ext;
|
|
|
|
char idstr[13];
|
|
|
|
unsigned max_cpuid;
|
|
|
|
unsigned max_ext_cpuid;
|
|
|
|
unsigned int amd_flags;
|
|
|
|
unsigned int amd_flags2;
|
2006-05-14 20:24:47 +00:00
|
|
|
const char *model_name = NULL;
|
2005-11-23 19:29:11 +00:00
|
|
|
int i;
|
|
|
|
char processor_name[49];
|
2001-06-05 18:40:44 +00:00
|
|
|
|
2005-11-23 19:29:11 +00:00
|
|
|
regs = cpuid(0);
|
|
|
|
max_cpuid = regs.eax;
|
|
|
|
/* printf("%d CPUID function codes\n", max_cpuid+1); */
|
2001-06-05 18:40:44 +00:00
|
|
|
|
2005-11-23 19:29:11 +00:00
|
|
|
store32(idstr+0, regs.ebx);
|
|
|
|
store32(idstr+4, regs.edx);
|
|
|
|
store32(idstr+8, regs.ecx);
|
|
|
|
idstr[12] = 0;
|
2007-05-21 07:47:53 +00:00
|
|
|
printf("vendor_id\t: %s\n", idstr);
|
2001-06-05 18:40:44 +00:00
|
|
|
|
2005-11-23 19:29:11 +00:00
|
|
|
regs_ext = cpuid((1<<31) + 0);
|
|
|
|
max_ext_cpuid = regs_ext.eax;
|
|
|
|
if (max_ext_cpuid >= (1<<31) + 1) {
|
|
|
|
regs_ext = cpuid((1<<31) + 1);
|
|
|
|
amd_flags = regs_ext.edx;
|
|
|
|
amd_flags2 = regs_ext.ecx;
|
2001-06-05 18:40:44 +00:00
|
|
|
|
2005-11-23 19:29:11 +00:00
|
|
|
if (max_ext_cpuid >= (1<<31) + 4) {
|
|
|
|
for (i = 2; i <= 4; i++) {
|
|
|
|
regs_ext = cpuid((1<<31) + i);
|
|
|
|
store32(processor_name + (i-2)*16, regs_ext.eax);
|
|
|
|
store32(processor_name + (i-2)*16 + 4, regs_ext.ebx);
|
|
|
|
store32(processor_name + (i-2)*16 + 8, regs_ext.ecx);
|
|
|
|
store32(processor_name + (i-2)*16 + 12, regs_ext.edx);
|
|
|
|
}
|
|
|
|
processor_name[48] = 0;
|
|
|
|
model_name = processor_name;
|
2007-02-13 00:47:09 +00:00
|
|
|
while (*model_name == ' ') {
|
|
|
|
model_name++;
|
|
|
|
}
|
2005-11-23 19:29:11 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
amd_flags = 0;
|
|
|
|
amd_flags2 = 0;
|
|
|
|
}
|
2001-06-05 18:40:44 +00:00
|
|
|
|
2005-11-23 19:29:11 +00:00
|
|
|
if (max_cpuid >= 1) {
|
|
|
|
static struct {
|
|
|
|
int bit;
|
2006-09-29 15:35:29 +00:00
|
|
|
char *desc;
|
2005-11-23 19:29:11 +00:00
|
|
|
} cap[] = {
|
2006-09-29 12:34:38 +00:00
|
|
|
CPUID_FEATURE_DEF(0, "fpu", "Floating-point unit on-chip"),
|
|
|
|
CPUID_FEATURE_DEF(1, "vme", "Virtual Mode Enhancements"),
|
|
|
|
CPUID_FEATURE_DEF(2, "de", "Debugging Extension"),
|
|
|
|
CPUID_FEATURE_DEF(3, "pse", "Page Size Extension"),
|
|
|
|
CPUID_FEATURE_DEF(4, "tsc", "Time Stamp Counter"),
|
|
|
|
CPUID_FEATURE_DEF(5, "msr", "Pentium Processor MSR"),
|
|
|
|
CPUID_FEATURE_DEF(6, "pae", "Physical Address Extension"),
|
|
|
|
CPUID_FEATURE_DEF(7, "mce", "Machine Check Exception"),
|
|
|
|
CPUID_FEATURE_DEF(8, "cx8", "CMPXCHG8B Instruction Supported"),
|
|
|
|
CPUID_FEATURE_DEF(9, "apic", "On-chip APIC Hardware Enabled"),
|
|
|
|
CPUID_FEATURE_DEF(11, "sep", "SYSENTER and SYSEXIT"),
|
|
|
|
CPUID_FEATURE_DEF(12, "mtrr", "Memory Type Range Registers"),
|
|
|
|
CPUID_FEATURE_DEF(13, "pge", "PTE Global Bit"),
|
|
|
|
CPUID_FEATURE_DEF(14, "mca", "Machine Check Architecture"),
|
|
|
|
CPUID_FEATURE_DEF(15, "cmov", "Conditional Move/Compare Instruction"),
|
|
|
|
CPUID_FEATURE_DEF(16, "pat", "Page Attribute Table"),
|
|
|
|
CPUID_FEATURE_DEF(17, "pse36", "Page Size Extension 36-bit"),
|
|
|
|
CPUID_FEATURE_DEF(18, "pn", "Processor Serial Number"),
|
2007-03-01 11:00:31 +00:00
|
|
|
CPUID_FEATURE_DEF(19, "clflush", "CFLUSH instruction"),
|
2006-09-29 12:34:38 +00:00
|
|
|
CPUID_FEATURE_DEF(21, "dts", "Debug Store"),
|
|
|
|
CPUID_FEATURE_DEF(22, "acpi", "Thermal Monitor and Clock Ctrl"),
|
|
|
|
CPUID_FEATURE_DEF(23, "mmx", "MMX Technology"),
|
|
|
|
CPUID_FEATURE_DEF(24, "fxsr", "FXSAVE/FXRSTOR"),
|
|
|
|
CPUID_FEATURE_DEF(25, "sse", "SSE Extensions"),
|
|
|
|
CPUID_FEATURE_DEF(26, "sse2", "SSE2 Extensions"),
|
|
|
|
CPUID_FEATURE_DEF(27, "ss", "Self Snoop"),
|
|
|
|
CPUID_FEATURE_DEF(28, "ht", "Multi-threading"),
|
|
|
|
CPUID_FEATURE_DEF(29, "tm", "Therm. Monitor"),
|
|
|
|
CPUID_FEATURE_DEF(30, "ia64", "IA-64 Processor"),
|
|
|
|
CPUID_FEATURE_DEF(31, "pbe", "Pend. Brk. EN."),
|
2005-11-23 19:29:11 +00:00
|
|
|
{ -1 }
|
|
|
|
};
|
|
|
|
static struct {
|
|
|
|
int bit;
|
|
|
|
char *desc;
|
|
|
|
} cap2[] = {
|
2006-09-29 12:34:38 +00:00
|
|
|
CPUID_FEATURE_DEF(0, "pni", "SSE3 Extensions"),
|
|
|
|
CPUID_FEATURE_DEF(3, "monitor", "MONITOR/MWAIT"),
|
|
|
|
CPUID_FEATURE_DEF(4, "ds_cpl", "CPL Qualified Debug Store"),
|
|
|
|
CPUID_FEATURE_DEF(5, "vmx", "Virtual Machine Extensions"),
|
2006-10-01 17:19:45 +00:00
|
|
|
CPUID_FEATURE_DEF(6, "smx", "Safer Mode Extensions"),
|
2006-09-29 12:34:38 +00:00
|
|
|
CPUID_FEATURE_DEF(7, "est", "Enhanced Intel SpeedStep Technology"),
|
|
|
|
CPUID_FEATURE_DEF(8, "tm2", "Thermal Monitor 2"),
|
2006-10-01 17:19:45 +00:00
|
|
|
CPUID_FEATURE_DEF(9, "ssse3", "Supplemental SSE3"),
|
2006-09-29 12:34:38 +00:00
|
|
|
CPUID_FEATURE_DEF(10, "cid", "L1 Context ID"),
|
|
|
|
CPUID_FEATURE_DEF(13, "cx16", "CMPXCHG16B Available"),
|
2007-05-21 07:46:23 +00:00
|
|
|
CPUID_FEATURE_DEF(14, "xtpr", "xTPR Disable"),
|
|
|
|
CPUID_FEATURE_DEF(15, "pdcm", "Perf/Debug Capability MSR"),
|
|
|
|
CPUID_FEATURE_DEF(18, "dca", "Direct Cache Access"),
|
|
|
|
CPUID_FEATURE_DEF(19, "sse41", "SSE4.1 Extensions"),
|
|
|
|
CPUID_FEATURE_DEF(20, "sse42", "SSE4.2 Extensions"),
|
|
|
|
CPUID_FEATURE_DEF(23, "popcnt", "Pop Count Instruction"),
|
2005-11-23 19:29:11 +00:00
|
|
|
{ -1 }
|
|
|
|
};
|
|
|
|
static struct {
|
|
|
|
int bit;
|
2006-09-29 12:36:17 +00:00
|
|
|
char *desc;
|
2005-11-23 19:29:11 +00:00
|
|
|
} cap_amd[] = {
|
2006-09-29 12:34:38 +00:00
|
|
|
CPUID_FEATURE_DEF(11, "syscall", "SYSCALL and SYSRET"),
|
|
|
|
CPUID_FEATURE_DEF(19, "mp", "MP Capable"),
|
|
|
|
CPUID_FEATURE_DEF(20, "nx", "No-Execute Page Protection"),
|
2007-03-01 10:58:20 +00:00
|
|
|
CPUID_FEATURE_DEF(22, "mmxext", "MMX Technology (AMD Extensions)"),
|
2006-09-29 12:34:38 +00:00
|
|
|
CPUID_FEATURE_DEF(25, "fxsr_opt", "Fast FXSAVE/FXRSTOR"),
|
2007-05-21 07:42:58 +00:00
|
|
|
CPUID_FEATURE_DEF(26, "pdpe1gb", "PDP Entry for 1GiB Page"),
|
2006-09-29 12:34:38 +00:00
|
|
|
CPUID_FEATURE_DEF(27, "rdtscp", "RDTSCP Instruction"),
|
|
|
|
CPUID_FEATURE_DEF(29, "lm", "Long Mode Capable"),
|
|
|
|
CPUID_FEATURE_DEF(30, "3dnowext", "3DNow! Extensions"),
|
|
|
|
CPUID_FEATURE_DEF(31, "3dnow", "3DNow!"),
|
2005-11-23 19:29:11 +00:00
|
|
|
{ -1 }
|
|
|
|
};
|
|
|
|
static struct {
|
|
|
|
int bit;
|
|
|
|
char *desc;
|
|
|
|
} cap_amd2[] = {
|
2006-09-29 12:34:38 +00:00
|
|
|
CPUID_FEATURE_DEF(0, "lahf_lm", "LAHF/SAHF Supported in 64-bit Mode"),
|
|
|
|
CPUID_FEATURE_DEF(1, "cmp_legacy", "Chip Multi-Core"),
|
|
|
|
CPUID_FEATURE_DEF(2, "svm", "Secure Virtual Machine"),
|
2007-05-21 07:42:58 +00:00
|
|
|
CPUID_FEATURE_DEF(3, "extapic", "Extended APIC Space"),
|
2006-09-29 12:34:38 +00:00
|
|
|
CPUID_FEATURE_DEF(4, "cr8legacy", "CR8 Available in Legacy Mode"),
|
2007-05-21 07:42:58 +00:00
|
|
|
CPUID_FEATURE_DEF(5, "abm", "Advanced Bit Manipulation"),
|
|
|
|
CPUID_FEATURE_DEF(6, "sse4a", "SSE4A Extensions"),
|
|
|
|
CPUID_FEATURE_DEF(7, "misalignsse", "Misaligned SSE Mode"),
|
|
|
|
CPUID_FEATURE_DEF(8, "3dnowprefetch", "3DNow! Prefetch/PrefetchW"),
|
|
|
|
CPUID_FEATURE_DEF(9, "osvw", "OS Visible Workaround"),
|
2007-07-19 06:39:38 +00:00
|
|
|
CPUID_FEATURE_DEF(10, "ibs", "Instruction Based Sampling"),
|
2005-11-23 19:29:11 +00:00
|
|
|
{ -1 }
|
|
|
|
};
|
|
|
|
unsigned int family, model, stepping;
|
2001-06-05 18:40:44 +00:00
|
|
|
|
2005-11-23 19:29:11 +00:00
|
|
|
regs = cpuid(1);
|
2006-05-14 20:24:47 +00:00
|
|
|
family = (regs.eax >> 8) & 0xf;
|
|
|
|
model = (regs.eax >> 4) & 0xf;
|
|
|
|
stepping = regs.eax & 0xf;
|
|
|
|
|
|
|
|
if (family == 0xf)
|
|
|
|
family += (regs.eax >> 20) & 0xff;
|
2007-04-20 18:57:09 +00:00
|
|
|
if (family == 0xf || family == 6)
|
2006-05-14 20:24:47 +00:00
|
|
|
model += ((regs.eax >> 16) & 0xf) << 4;
|
|
|
|
|
2005-11-23 19:29:11 +00:00
|
|
|
printf("cpu family\t: %d\n"
|
|
|
|
"model\t\t: %d\n"
|
|
|
|
"stepping\t: %d\n" ,
|
2006-05-14 20:24:47 +00:00
|
|
|
family,
|
|
|
|
model,
|
|
|
|
stepping);
|
|
|
|
|
|
|
|
if (strstr(idstr, "Intel") && !model_name) {
|
|
|
|
if (family == 6 && model == 0xb && stepping == 1)
|
|
|
|
model_name = "Intel (R) Celeron (R) processor";
|
|
|
|
else
|
|
|
|
model_name = brandname(regs.ebx & 0xf);
|
2007-05-21 07:47:53 +00:00
|
|
|
}
|
2006-05-14 20:24:47 +00:00
|
|
|
|
2005-11-23 19:29:11 +00:00
|
|
|
printf("flags\t\t:");
|
|
|
|
for (i = 0; cap[i].bit >= 0; i++) {
|
|
|
|
if (regs.edx & (1 << cap[i].bit)) {
|
|
|
|
printf(" %s", cap[i].desc);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for (i = 0; cap2[i].bit >= 0; i++) {
|
2006-05-14 20:24:47 +00:00
|
|
|
if (regs.ecx & (1 << cap2[i].bit)) {
|
2005-11-23 19:29:11 +00:00
|
|
|
printf(" %s", cap2[i].desc);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* k6_mtrr is supported by some AMD K6-2/K6-III CPUs but
|
|
|
|
it is not indicated by a CPUID feature bit, so we
|
|
|
|
have to check the family, model and stepping instead. */
|
|
|
|
if (strstr(idstr, "AMD") &&
|
2007-05-21 07:47:53 +00:00
|
|
|
family == 5 &&
|
2005-11-23 19:29:11 +00:00
|
|
|
(model >= 9 || model == 8 && stepping >= 8))
|
|
|
|
printf(" %s", "k6_mtrr");
|
2006-05-14 20:24:47 +00:00
|
|
|
/* similar for cyrix_arr. */
|
|
|
|
if (strstr(idstr, "Cyrix") &&
|
|
|
|
(family == 5 && model < 4 || family == 6))
|
|
|
|
printf(" %s", "cyrix_arr");
|
2006-05-31 23:37:29 +00:00
|
|
|
/* as well as centaur_mcr. */
|
|
|
|
if (strstr(idstr, "Centaur") &&
|
|
|
|
family == 5)
|
|
|
|
printf(" %s", "centaur_mcr");
|
2007-05-21 07:47:53 +00:00
|
|
|
|
2005-11-23 19:29:11 +00:00
|
|
|
for (i = 0; cap_amd[i].bit >= 0; i++) {
|
|
|
|
if (amd_flags & (1 << cap_amd[i].bit)) {
|
|
|
|
printf(" %s", cap_amd[i].desc);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for (i = 0; cap_amd2[i].bit >= 0; i++) {
|
|
|
|
if (amd_flags2 & (1 << cap_amd2[i].bit)) {
|
|
|
|
printf(" %s", cap_amd2[i].desc);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
printf("\n");
|
2001-06-05 18:40:44 +00:00
|
|
|
|
2005-11-23 19:29:11 +00:00
|
|
|
if (regs.edx & (1 << 4)) {
|
|
|
|
int64_t tsc_start, tsc_end;
|
|
|
|
struct timeval tv_start, tv_end;
|
|
|
|
int usec_delay;
|
2001-06-05 18:40:44 +00:00
|
|
|
|
2005-11-23 19:29:11 +00:00
|
|
|
tsc_start = rdtsc();
|
|
|
|
gettimeofday(&tv_start, NULL);
|
|
|
|
#ifdef MISSING_USLEEP
|
|
|
|
sleep(1);
|
2001-06-05 18:40:44 +00:00
|
|
|
#else
|
2005-11-23 19:29:11 +00:00
|
|
|
usleep(100000);
|
2001-06-05 18:40:44 +00:00
|
|
|
#endif
|
2005-11-23 19:29:11 +00:00
|
|
|
tsc_end = rdtsc();
|
|
|
|
gettimeofday(&tv_end, NULL);
|
2001-06-05 18:40:44 +00:00
|
|
|
|
2005-11-23 19:29:11 +00:00
|
|
|
usec_delay = 1000000 * (tv_end.tv_sec - tv_start.tv_sec)
|
|
|
|
+ (tv_end.tv_usec - tv_start.tv_usec);
|
2001-06-05 18:40:44 +00:00
|
|
|
|
2007-05-21 07:46:23 +00:00
|
|
|
printf("cpu MHz\t\t: %.3f\n",
|
2005-11-23 19:29:11 +00:00
|
|
|
(double)(tsc_end-tsc_start) / usec_delay);
|
|
|
|
}
|
|
|
|
}
|
2001-06-05 18:40:44 +00:00
|
|
|
|
2006-05-14 20:24:47 +00:00
|
|
|
printf("model name\t: ");
|
|
|
|
if (model_name)
|
|
|
|
printf("%s\n", model_name);
|
|
|
|
else
|
2007-05-21 07:47:53 +00:00
|
|
|
printf("Unknown %s CPU\n", idstr);
|
2001-06-05 18:40:44 +00:00
|
|
|
}
|