From owner-freebsd-mips@FreeBSD.ORG Tue Aug 7 07:13:18 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 2DD4610657A7 for ; Tue, 7 Aug 2012 07:13:18 +0000 (UTC) (envelope-from ambrosehua@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id B5B318FC0C for ; Tue, 7 Aug 2012 07:13:17 +0000 (UTC) Received: by wgbds11 with SMTP id ds11so3304906wgb.31 for ; Tue, 07 Aug 2012 00:13:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=yULG6Nu3VXcMx8eHXmhAmejVA0KNt8yValoQ6W1rUXQ=; b=PksHu1ErEE4VomsiPSWoAPGbiHj8ytjRDLbui9TCbV0UciLcJYPYC3hVm5togJBmNz dpF6332Dy5q2wyGGyq/A4vbULqomu/UiJKtvYeTk092gj3Qr9WslKPnqUeYHqgCKq3WE 1Mi7/3cjoHciImI086104w95CThUxi5Olhfj3Abvkqx4Q99RoFfkbn7T2+myKOGmAzOR QARhTz0+aCPCfDudaeFmz/k0AZ3bSOpODbqJSnz+E7oV0bD5LQlIiO5tAf6aP/UCjYgt 7H93ozVjJ81RW8WuIQarzEO/GmbOvKoddUdafVULnRY310Aroz8tFRPD44fJetueyjrF /Ozg== MIME-Version: 1.0 Received: by 10.216.54.146 with SMTP id i18mr6782746wec.187.1344323596234; Tue, 07 Aug 2012 00:13:16 -0700 (PDT) Received: by 10.223.83.9 with HTTP; Tue, 7 Aug 2012 00:13:16 -0700 (PDT) Date: Tue, 7 Aug 2012 15:13:16 +0800 Message-ID: From: Paul Ambrose To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 07:13:18 -0000 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