Subject: port-i386/3110: port-i386 does not identify MMX cpus
To: None <gnats-bugs@gnats.netbsd.org>
From: None <martin@rumolt.teuto.de>
List: netbsd-bugs
Date: 01/15/1997 08:25:30
>Number:         3110
>Category:       port-i386
>Synopsis:       MMX cpus are not identified
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 14 23:35:00 1997
>Last-Modified:
>Originator:     Martin Husemann
>Organization:
private
>Release:        current
>Environment:
System: NetBSD rumolt.teuto.de 1.2 NetBSD 1.2 (RUMOLT) #1: Fri Oct 4 04:57:09 MET DST 1996 root@rumolt.teuto.de:/usr/src/sys/arch/i386/compile/RUMOLT i386
Any P5/P6 cpu with mmx support.

>Description:
Just a minor nit, while we're at frobbing cpuid tables. We should
add code to identify MMX cpus.

>How-To-Repeat:
Boot on a MMX cpu.

>Fix:
Apply the following patch.

*** /tmp/machdep.c	Wed Jan 15 08:02:25 1997
--- machdep.c	Wed Jan 15 08:03:38 1997
***************
*** 628,635 ****
  		}
  	}
  
! 	sprintf(cpu_model, "%s %s%s (%s-class)", vendorname, modifier, name,
! 		classnames[class]);
  	printf("cpu0: %s\n", cpu_model);
  
  	cpu_class = class;
--- 628,635 ----
  		}
  	}
  
! 	sprintf(cpu_model, "%s %s%s (%s-class)%s", vendorname, modifier, name,
! 		classnames[class], cpu_feature & 0x800000 ? " with MMX" : "");
  	printf("cpu0: %s\n", cpu_model);
  
  	cpu_class = class;

>Audit-Trail:
>Unformatted: