From owner-freebsd-mips@FreeBSD.ORG Tue Aug 7 08:34:56 2012 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 91DDE1065674 for ; Tue, 7 Aug 2012 08:34:56 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4675F8FC0C for ; Tue, 7 Aug 2012 08:34:55 +0000 (UTC) Received: by yhfs35 with SMTP id s35so4102825yhf.13 for ; Tue, 07 Aug 2012 01:34:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=W8suI7Tz9spLtVsAYqf9RyRpczwPsWNAOKbGc4F4srA=; b=dDm6QPDJ0xiIpqQinwi2DRdbJc/HzdGH/gu2Ajv+Lmjg1YqYA90y7PQ4WzsCRGjCDe tlaudupzzRktySLzp4IQOhsha0vsk5jMx7eXfLUS81VUZTRx7mORn/gM8rJIAWVH60UO H6f/Hn5uqt2nnx9HtMB+vGr3rO7OZolXEhB8nOBujhcLFXDkJYgyffJsuVSMFUEFFOD7 +nwXWKSSzFTSbGka/3SDLybE3z9VfkOv7Y9EDyQHX8PQvwHh2asamw016iNGMypDjzt5 5B8SgO5fWTWt7Vu7FW30ACQfK5Tf5iieUPCe5er4Vcg1j2pVZAuIwF0QpAfQZ7LdlSXO X3fQ== Received: by 10.50.6.229 with SMTP id e5mr7963403iga.9.1344328494648; Tue, 07 Aug 2012 01:34:54 -0700 (PDT) Received: from 63.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id z3sm8739231igc.7.2012.08.07.01.34.52 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 07 Aug 2012 01:34:53 -0700 (PDT) Sender: Warner Losh Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Tue, 7 Aug 2012 02:34:51 -0600 Content-Transfer-Encoding: 7bit Message-Id: <76EA6699-96FB-4616-BFBB-F274680CFCAB@bsdimp.com> References: To: Paul Ambrose X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQkU318BQHp1JtVbVF9Jvi0nH766gzl7LusshKiDwBnR2M21xleNntZ5wpHBFJ9Ow6WD9T/L Cc: freebsd-mips@freebsd.org Subject: Re: SYSCTL_INT emulate_fp error X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2012 08:34:56 -0000 On Aug 7, 2012, at 1:13 AM, Paul Ambrose wrote: > When I read sys/mips/mips/trap.c, I found > /* > * FP emulation is assumed to work on O32, but the code is outdated and > crufty > * enough that it's a more sensible default to have it disabled when using > * other ABIs. At the very least, it needs a lot of help in using > * type-semantic ABI-oblivious macros for everything it does. > */ > #if defined(__mips_o32) > static int emulate_fp = 1; > #else > static int emulate_fp = 0; > #endif > SYSCTL_INT(_machdep, OID_AUTO, emulate_fp, CTLFLAG_RW, > &allow_unaligned_acc, 0, "Emulate unimplemented FPU instructions"); > > here &allow_unaligned_acc should be &emulate_fp You're right. Fixed. Warner