From owner-freebsd-mips@FreeBSD.ORG Tue Jun 1 09:17:56 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7ECB4106568B; Tue, 1 Jun 2010 09:17:56 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4B6468FC12; Tue, 1 Jun 2010 09:17:56 +0000 (UTC) Received: by pva18 with SMTP id 18so89372pva.13 for ; Tue, 01 Jun 2010 02:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=rm5sgBgCxy1QZqSt0B3JNK8iqAzsHdBj+SVACCWiM8k=; b=G3euW7PcjiWkdgOEGahalZjAixd+jCmJ89ZArwmewYjPfT5myXAaGgMjZuMI4WBKcV 5TZ0QUGl3ejV9H+rlfs9oN0lpbZyk2ai9nmAUlLDAtmROVsKOMwmQdErTo09lrO08EhZ hPCAGHLGWZd3FIfMGfw9mndjWi+8bKkAyuy8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Pdt6tCW7JrDOuDKNdqkqk3NU52wrv6VpJ1Lj5kSfEeV1ReII8JUF8r6b3QEVg2aeKa JZPuu5PHNkTk+owxS/2gHReLfLUlceCCiAuVGu6JYVAePO2yvUI64KwsJ31QJWb+vsVK C3luGCs8kSYAWz+qbzCKlG5FA/O/xW/U6QntU= MIME-Version: 1.0 Received: by 10.141.13.5 with SMTP id q5mr4242857rvi.280.1275383875578; Tue, 01 Jun 2010 02:17:55 -0700 (PDT) Received: by 10.141.4.3 with HTTP; Tue, 1 Jun 2010 02:17:55 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Jun 2010 14:47:55 +0530 Message-ID: From: "C. Jayachandran" To: Juli Mallett Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: HEADS UP: Toolchain changes coming soon. (Octeon, n32, n64) 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, 01 Jun 2010 09:17:56 -0000 On Tue, Jun 1, 2010 at 12:13 PM, Juli Mallett wrote: > On Mon, May 31, 2010 at 23:34, C. Jayachandran = wrote: >> GCC seems to have added mips64r2 support in 4.4 >> (http://gcc.gnu.org/gcc-4.4/changes.html) which was a GPLv3 release, >> so I was under the impression that we could not merge it into FreeBSD. >> Is this a valid concern, or were you able to get the code re-licensed, >> Or (the option which is most likely) am I completely off track here :) >> >> Netlogic's next chip (XLP) too has MIPS64r2 ISA, so we are interested >> in getting support for this. > > Well, let me be clear about the extent of the support. =A0There was > already a mips32r2 stub which added support for a couple of things and > I extended mips64 to mips64r2 in the same way. =A0It's mostly just there > to get mips64r2 instructions to work in binutils (i.e. to proxy the > ISA level to the assembler.) =A0I didn't use any GPLv3 sources as a > reference, although a search later suggested that the trivial parts of > the change (i.e. internally encoding mips64r2 as 65 much as mips32r2 > is 33) were similar. =A0If you look at the diff it's pretty clear that > calling it support is pretty laughable except wrt being able to > assemble inline assembly using those instructions, setting the right > default with the assembler and support in GCC for rotate, seb and seh > instructions. That clears it up, thanks. Looking at the patch, most of the changes seems to be in binutils, are these from a specific version of binutils? I am asking because I'm not sure how the FreeBSD toolchain is synchronized across architectures - are all architectures at the same version of binutils, or can each architecture decide to update its part of the tool-chain. > Is there specific functionality you need in GCC? Netlogic has some updates for GCC and binutils in its SDK. But they are not critical, and we have not merged these into the FreeBSD. I was not sure if I can get these changes into FreeBSD directly. JC.