From 69385629b01d8069372bf8a375bc7cf00ebf019f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 20 Jul 1998 07:18:46 +0000 Subject: 1998-07-20 Roland McGrath * cpu-types.c: Test with #ifdef for CPU_TYPE_I486, CPU_TYPE_PENTIUM, CPU_TYPE_PENTIUMPRO, CPU_TYPE_POWERPC, since not all versions have them. --- proc/cpu-types.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'proc') diff --git a/proc/cpu-types.c b/proc/cpu-types.c index 64466e46..7bcaa928 100644 --- a/proc/cpu-types.c +++ b/proc/cpu-types.c @@ -21,10 +21,18 @@ const char *const mach_cpu_types[] = [CPU_TYPE_SPARC] = "sparc", [CPU_TYPE_I860] = "i860", [CPU_TYPE_ALPHA] = "alpha", +#ifdef CPU_TYPE_I486 [CPU_TYPE_I486] = "i486", +#endif +#ifdef CPU_TYPE_PENTIUM [CPU_TYPE_PENTIUM] = "i586", +#endif +#ifdef CPU_TYPE_PENTIUMPRO [CPU_TYPE_PENTIUMPRO] = "i686", +#endif +#ifdef CPU_TYPE_POWERPC [CPU_TYPE_POWERPC] = "powerpc", +#endif }; const char *const mach_cpu_subtypes[][32] = @@ -80,9 +88,15 @@ const char *const mach_cpu_subtypes[][32] = [CPU_SUBTYPE_PS2] = "PS2", \ } [CPU_TYPE_I386] = Ix86_SUBTYPES, +#ifdef CPU_TYPE_I486 [CPU_TYPE_I486] = Ix86_SUBTYPES, +#endif +#ifdef CPU_TYPE_PENTIUM [CPU_TYPE_PENTIUM] = Ix86_SUBTYPES, +#endif +#ifdef CPU_TYPE_PENTIUMPRO [CPU_TYPE_PENTIUMPRO] = Ix86_SUBTYPES, +#endif [CPU_TYPE_MIPS] = { [CPU_SUBTYPE_MIPS_R2300] = "R2300", -- cgit v1.2.3