linux-mips
[Top] [All Lists]

Re: -march=r10000 Support for MIPS Targets (Old 3.4.x Patch; requires po

To: gcc-patches@gcc.gnu.org
Subject: Re: -march=r10000 Support for MIPS Targets (Old 3.4.x Patch; requires porting, assistance requested)
From: Kumba <kumba@gentoo.org>
Date: Fri, 01 Jul 2005 00:51:43 -0400
Cc: Linux MIPS List <linux-mips@linux-mips.org>
In-reply-to: <200506281007.12754.stevenb@suse.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <42C0D94F.3030809@gentoo.org> <200506281007.12754.stevenb@suse.de>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
Steven Bosscher wrote:
Looks like all the arith->shift attribute changes from the patch you
posted are already in mainline, so all you really need to add r10000
support is a pipeline model.  All the MIPSen were converted from the
old pipeline description (i.e. "define_function_unit") to the new one
(i.e. "define_insn_reservation" and friends) in a big patch posted
last year: http://gcc.gnu.org/ml/gcc-patches/2004-07/msg01065.html.
Maybe you can find in the trhead surrounding that message some ideas
on how to convert your r10000 pipeline model.

HTH,

Gr.
Steven

Yeah, I've poked around at how the new pipeline descriptions work, but my relative lack of understanding in regards to compiler internals makes it difficult to understand some terms and especially what the numbers in portions of define_function_unit do, and as such, I have no idea where to place them in the newer define_insn_reservation. Not really having the free time to constantly rebuild gcc to test to see if numbers were placed appropriately, I've looked for other means to get this patch converted.

I did find a script on the gcc-patches ML that was a very early auto-converter for old gcc-3.4.x define_function_unit to gcc-4 define_insn_reservation, but it was written in gawk, and for some reason, I couldn't coax my copy of gawk to execute it correctly. If there's a straight-forward guide to converting, I'd be interested in reading it (assuming it doesn't have a pre-requisite of deep gcc internals knowledge).


--Kumba

--
Gentoo/MIPS Team Lead
Gentoo Foundation Board of Trustees

"Such is oft the course of deeds that move the wheels of the world: small hands do them because they must, while the eyes of the great are elsewhere." --Elrond

<Prev in Thread] Current Thread [Next in Thread>