NetBSD Problem Report #42444

From www@NetBSD.org  Sat Dec 12 06:59:57 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 7613063BB2F
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 12 Dec 2009 06:59:57 +0000 (UTC)
Message-Id: <20091212065957.264E463BAB5@www.NetBSD.org>
Date: Sat, 12 Dec 2009 06:59:57 +0000 (UTC)
From: dross@pobox.com
Reply-To: dross@pobox.com
To: gnats-bugs@NetBSD.org
Subject: Potential tweaks for NetBSD on Atari TT030
X-Send-Pr-Version: www-1.0

>Number:         42444
>Category:       port-atari
>Synopsis:       Potential tweaks for NetBSD on Atari TT030
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-atari-maintainer
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 12 07:00:01 +0000 2009
>Closed-Date:    Sat Jun 30 11:39:16 +0000 2012
>Last-Modified:  Sat Jun 30 11:39:16 +0000 2012
>Originator:     David Ross
>Release:        5.0.1
>Organization:
n/a
>Environment:
n/a
>Description:
I noticed the ATARITT kernel compiling with -m68020 even though the TT has a 68030.  I made the following modifications to /usr/src/sys/arch/atari/conf/Makefile.atari and they seem to work:

+ Changed to -m68030
+ Removed -msoft-float and removed the includes for software floating point.  (All ATARI TT030s have an FPU)

I'm not sure if the same options should be specified in other places to cover the rest of the NetBSD distribution and/or other default compiler options outside the kernel.
>How-To-Repeat:
n/a
>Fix:
See "Full Description."

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sat, 30 Jun 2012 20:39:16 +0900
State-Changed-Why:
- There is no instruction or optimization difference between m68020 and m68030:
 http://nxr.netbsd.org/xref/src/external/gpl3/gcc/dist/gcc/config/m68k/m68k.c#358
- -msoft-float is intentional because there is few FP ops in kernel and
  we don't want to bother to save/restore large FP registers on switching
  between kernel and userland mode.
Anyway thanks for report.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.