From owner-freebsd-mips@FreeBSD.ORG Tue Jun 1 06:34:49 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 D4B0D106564A; Tue, 1 Jun 2010 06:34:49 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id A300E8FC0C; Tue, 1 Jun 2010 06:34:49 +0000 (UTC) Received: by pwj1 with SMTP id 1so466568pwj.13 for ; Mon, 31 May 2010 23:34:49 -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=McINjBbrzy6XwvlfKQuz9/yUmXg4WBVSzzzarv32VZ0=; b=suY43g6DD22tuhD+Wa1gcs5/fgaw2NbW6LSLmSCv1rbmN5BY6jWnGskjYXUtxqo6N1 xtYVnWz+OXhZerq20SiNA/tqvaHOsz97xZs9h99C7s/QY6He96XYAhQkAqHv6bW7T+Yv PEHq7RAhU/Mt0kJQdiap2/A4jY5azmE49TF88= 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=QCnKV1voy9zxXnyCB9+5zKA11pb2NlEbGaZw3AuIqTV/bssiLmUNCBystq/8V71egS bHVL5acxNQByzmKl9Ty84oeU6XzvPc1zzhZ5igv74GZI6HBLUKUmw7doiFysT61XY9Wp PHV04Ux8yM/zx7DkyhJuNYpr91e9GTV3dG0LE= MIME-Version: 1.0 Received: by 10.140.58.2 with SMTP id g2mr4111831rva.172.1275374088958; Mon, 31 May 2010 23:34:48 -0700 (PDT) Received: by 10.141.4.3 with HTTP; Mon, 31 May 2010 23:34:48 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Jun 2010 12:04:48 +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 06:34:49 -0000 On Tue, Jun 1, 2010 at 6:31 AM, Juli Mallett wrote: > Over the next day or two I am planning to merge changes to GCC and > binutils adding support for Octeon and the n32 and n64 ABIs, as well > as fixing a couple of bugs in our GCC spec. =A0Note that the > Octeon-related patches are necessary to support the Cavium Octeon > Simple Executive, which I am planning to import after these changes > have been committed, which will be terribly helpful for the Octeon > port, in particular a new network driver and hopefully soon crypto and > PCI support. > > If you have any questions or comments please get in touch with me. > The contents of the patch may shift some before commit as I do testing > on a wider variety of platforms. > > The full patch to GCC and binutils is at this URL, and I have > reproduced the description below: > > http://people.freebsd.org/~jmallett/mips-toolchain.diff > > o) Add TARGET_ABI to the MIPS toolchain build process. =A0This sets the > default ABI to one of o32, n32 or n64. =A0If it is not set, o32 is > assumed as that is the current default. > o) Set the default GCC cpu type to any specified TARGET_CPUTYPE. =A0This > is necessary to have a working "cc" if e.g. mips64 is specified, as > binutils will refuse to link objects using different ISAs in some > cases. > o) Add support for n32 and n64 ABIs to binutils and GCC. > o) Add additional required libgcc2 stubs for n32 and n64. > o) Add support for the "mips64r2" architecture to GCC. =A0Add the "octeon= " 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. Thanks, JC.