Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Apr 2010 00:24:59 +0200 (CEST)
From:      Martin Matuska <mm@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        peter@FreeBSD.org
Subject:   amd64/145593: [patch] fix MACHINE_CPU for amd64 in bsd.cpu.mk
Message-ID:  <20100409222459.F2CE62BAFD@mail2.vx.sk>
Resent-Message-ID: <201004092230.o39MU2nl033687@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         145593
>Category:       amd64
>Synopsis:       [patch] fix MACHINE_CPU for amd64 in bsd.cpu.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 09 22:30:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Martin Matuska
>Release:        FreeBSD 8.0-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD neo.vx.sk 8.0-RELEASE-p2 
>Description:
The MACHINE_CPU definition for amd64 in bsd.cpu.mk misses mmx 
if CPUTYPE is not set. 

It defines mmx if CPUTYPE is set to any string.
>How-To-Repeat:
CPUTYPE unset on amd64:
MACHINE_CPU=amd64 sse2 sse

If CPUTYPE is set to any string on amd64 (e.g. unknown):
MACHINE_CPU=unknown amd64 sse2 sse mmx
>Fix:

Index: share/mk/bsd.cpu.mk
===================================================================
--- share/mk/bsd.cpu.mk	(revision 206431)
+++ share/mk/bsd.cpu.mk	(working copy)
@@ -9,7 +9,7 @@
 . if ${MACHINE_ARCH} == "i386"
 MACHINE_CPU = i486
 . elif ${MACHINE_ARCH} == "amd64"
-MACHINE_CPU = amd64 sse2 sse
+MACHINE_CPU = amd64 sse2 sse mmx
 . elif ${MACHINE_ARCH} == "ia64"
 MACHINE_CPU = itanium
 . elif ${MACHINE_ARCH} == "powerpc"
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100409222459.F2CE62BAFD>