Subject: port-i386/29283: /proc/cpuinfo informs wrong flags for Athlon
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <kent@NetBSD.org>
List: netbsd-bugs
Date: 02/08/2005 07:28:00
>Number:         29283
>Category:       port-i386
>Synopsis:       /proc/cpuinfo informs wrong flags for Athlon
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 08 07:28:00 +0000 2005
>Originator:     TAMURA Kent
>Release:        2.99.15
>Organization:
hauN
>Environment:
NetBSD gabi-n.hauN.org 2.99.15 NetBSD 2.99.15 (GABI-N) #0: Mon Jan 31 18:16:07 JST 2005  kent@gabi-n.hauN.org:/usr/src/sys/arch/i386/compile/GABI-N i386
>Description:
On an Athlon 1GHz machine, "cat /proc/cpuinfo" with linux
option prints as follows:

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 4
model name      : AMD Athlon Model 4 (Thunderbird) (686-class)
stepping        : 2
cpu MHz         : 1002.33
fdiv_bug        : no
fpu             : yes
fpu_exception:  : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 pn acpi mmx fxsr ia64 31

The "flags" field is obviously incorrect.  Athlon does not
support IA-64.  I heard Linux 2.4.18 shows as follows:

processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 4
model name	: AMD Athlon(tm) Processor
stepping	: 2
cpu MHz		: 1002.287
cache size	: 256 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 1
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips	: 1998.84


>How-To-Repeat:
# mount -t procfs -o linux /proc /proc
% cat /proc/cpuinfo

>Fix: