From owner-freebsd-mips@FreeBSD.ORG Tue Mar 13 15:06:34 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 547D9106566B for ; Tue, 13 Mar 2012 15:06:34 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D83078FC08 for ; Tue, 13 Mar 2012 15:06:33 +0000 (UTC) Received: by wern13 with SMTP id n13so822768wer.13 for ; Tue, 13 Mar 2012 08:06:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=yTfOX9kpfhKkw++S0gI4za+wXiBGRa1ojTv9SVmE/a4=; b=YYuK/L+DZoUyN1UmOduI5NEZH7o8B+qkAcP2XoalCAFPsonZPCS1I6mxklK7xx89gm wWeghVVjjYck9zqCcuFP1ekzn8yVTOQoKqJyDRGbV6IQT/PgmMjROLoT1o9op4t7WZ6f dY5efuUznZO1brqTTytMTuuA/4vVCiq+4rpJVb0oiz/BqID2+Pi2AnfKag5e/+PsI2Bl D323dbBqQZZsQuy4c8kj16jtzxEDO5eTtRO5DyyGo2wD6qCIpYV3U8NjKlGIjBudTKhA o50TZ94qrs/BREp240wdIphn4bs4yxT0aYIip5sizwFIsgYSuMIL/p1M9t2+ZfeQLkNO RYyw== MIME-Version: 1.0 Received: by 10.180.82.132 with SMTP id i4mr8305414wiy.12.1331651192841; Tue, 13 Mar 2012 08:06:32 -0700 (PDT) Received: by 10.216.122.85 with HTTP; Tue, 13 Mar 2012 08:06:32 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 Mar 2012 20:36:32 +0530 Message-ID: From: "Jayachandran C." To: Juli Mallett Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-mips@FreeBSD.org" Subject: Re: Enforcing soft-float. 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, 13 Mar 2012 15:06:34 -0000 On Tue, Mar 13, 2012 at 8:20 PM, Juli Mallett wro= te: > On Tue, Mar 13, 2012 at 07:41, Jayachandran C. = wrote: >> On Tue, Mar 13, 2012 at 12:12 PM, Juli Mallett = wrote: >>> Greetings, people of mips@, >>> >>> I think that at least with 64-bit kernels, MipsFPTrap should kill the >>> running program. =A0Does anyone object to this? =A0The FP code is not e= ven >>> remotely 64-bit safe. =A0I don't care/dare to correct it. =A0Does anyon= e? >> >> Looks like we share this code with NetBSD. I have not looked in >> detail, but the NetBSD code seems to have the ifdefs for n64. Any idea >> if we can just import it? > > We could, and we could update MipsFPTrap and friends from NetBSD (or > even do it by hand), but that's not something I want to do since I > don't need to run binaries compiled to use hardware floating point. I think we will need to support building hard-float and soft-float user-space. I was looking at this for XLP before I got pulled into other things. FP emulation can be useful in that environment. But now, you could just take out the whole thing. JC.