From owner-freebsd-mips@FreeBSD.ORG Wed Jun 2 12:36:32 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 CF6941065676; Wed, 2 Jun 2010 12:36:32 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9B06D8FC1D; Wed, 2 Jun 2010 12:36:32 +0000 (UTC) Received: by pxi7 with SMTP id 7so3115662pxi.13 for ; Wed, 02 Jun 2010 05:36:32 -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=YvgCZO0MiLRKA2SMuwAQGCahAEjKmtdGxwhX3dHMDrw=; b=cx/3xmH4ZOHUtWRDU3VZHL7FIYfWMKnUhrTa0sv3QHvDbVPKcsB72YxapIEFyemQz+ uy5a05IoRbOe1XmzhSY6ZtQuWmDIlvyHht0AFEBAFQbQ67pn1RXYxtaXbxRAEdz3qbXV 0cdCJ9khSLM8sNsYWtACSK3HvH8rQWMJV+O38= 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=lchYBxEGQryY/NjcRDWFhymXZeZyjUC86YpmCh+YILkZYuoKOVJ2UUv165GOiS7qaT i8PYquU7bul1zfGPnbiVaNmZV6j3ZTHUa40cGRpSrkIMbMfLm80dJMeaG5hexyDXa/1s PeJRjcz48mDHMIWxawh8+2GZPEBnLC+tAqS94= MIME-Version: 1.0 Received: by 10.141.188.4 with SMTP id q4mr6357068rvp.147.1275482192214; Wed, 02 Jun 2010 05:36:32 -0700 (PDT) Received: by 10.141.4.3 with HTTP; Wed, 2 Jun 2010 05:36:32 -0700 (PDT) In-Reply-To: References: Date: Wed, 2 Jun 2010 18:06:32 +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: Wed, 02 Jun 2010 12:36:33 -0000 On Tue, Jun 1, 2010 at 2:53 PM, Juli Mallett wrote: > On Tue, Jun 1, 2010 at 02:17, C. Jayachandran = wrote: >> That clears it up, thanks. =A0Looking at the patch, most of the changes >> seems to be in binutils, are these from a specific version of >> binutils? =A0I 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. > > I pulled some files from a slightly more modern version of binutils > from a Cavium SDK than ours and reduced differences to make the > relevant parts of code match the older binutils API we provide, while > still providing the newer opcode interface and a couple of nearby > things. > >>> 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. =A0I >> was not sure if I can get these changes into FreeBSD directly. > > If Netlogic can GPLv2 their specific changes or reimplement them > relative to FreeBSD's toolchain, I think we would want to coordinate > to get them into the tree. =A0Our goal is generally to produce a > fully-working self-hosting system out of the box. =A0That may change at > some point, especially if Warner's work on supporting external > toolchains better pans out well, but I think for now it's a reasonable > goal. Stock binutils and GCC works fine for XLR (it is mips64 compliant), so XLR is self-hosting with the current FreeBSD MIPS tool-chain. Our patch for GCC is for adding 'xlr' machine description and march/mtune options. The binutils patch is for a few XLR specific instructions for which we currently '.word' in assembly for. So both of these are not really needed. Also licensing should not be an issue here - I'll have a go at this once the other toolchain changes are in. > Note that my understanding is that David O'Brien is working on > bringing in the last GPLv2 binutils which will make the differences > required for mips64r2 and Octeon substantially-smaller and I would > hope for Netlogic processors as well. JC.