From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9041 invoked by alias); 16 Jan 2007 19:29:34 -0000 Received: (qmail 9033 invoked by uid 22791); 16 Jan 2007 19:29:33 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 16 Jan 2007 19:29:28 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l0GJTODY022589; Tue, 16 Jan 2007 14:29:24 -0500 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l0GJTN2W029081; Tue, 16 Jan 2007 14:29:24 -0500 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.toronto.redhat.com [172.16.14.9]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l0GJTLY3002535; Tue, 16 Jan 2007 14:29:23 -0500 Received: from ton.toronto.redhat.com (ton.toronto.redhat.com [172.16.14.15]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 5D3428001CA; Tue, 16 Jan 2007 14:29:21 -0500 (EST) Received: from ton.toronto.redhat.com (localhost.localdomain [127.0.0.1]) by ton.toronto.redhat.com (8.13.1/8.13.1) with ESMTP id l0GJTLS0012708; Tue, 16 Jan 2007 14:29:21 -0500 Received: (from fche@localhost) by ton.toronto.redhat.com (8.13.1/8.13.1/Submit) id l0GJTIGU012691; Tue, 16 Jan 2007 14:29:18 -0500 Date: Tue, 16 Jan 2007 19:29:00 -0000 From: "Frank Ch. Eigler" To: Joern Rennecke Cc: cgen@sources.redhat.com Subject: Re: copyright issues for cgen-generated tools Message-ID: <20070116192918.GA1841@redhat.com> References: <20070115113749.GA27642@elsdt-razorfish.arc.com> <20070115193844.GA22188@redhat.com> <20070116132856.GA27599@elsdt-razorfish.arc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070116132856.GA27599@elsdt-razorfish.arc.com> User-Agent: Mutt/1.4.1i X-IsSubscribed: yes Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2007-q1/txt/msg00008.txt.bz2 Hi - On Tue, Jan 16, 2007 at 01:28:56PM +0000, Joern Rennecke wrote: > [...] > The features I hoped to re-use from the sh port cpu are variable length > instruction parsing for a bi-endian cpu that is actually (insn-lsb0? #t), > and delay slot handling for the simulators. [...] Go ahead. > Also, worrying about m32r.cpu is that it has ChangeLog entries that > are newer than the Copyright notices. [...] I'm sure that's just sloppy copyright date updating. > [...] > I'm thinking of using something like the code below; does that make sense? > [...] > (dnmf f-rel21 "21 bit pc relative signed offset" (PCREL-ADDR) INT > (f-d21l f-d21h) > (sequence () ; insert > (set (ifield f-d21l) > (and (srl (sub (ifield f-rel21) (and pc (const -4))) > (const 1)) > (const #x3ff))) > (set (ifield f-d21h) > (sra (sub (ifield f-rel21) (and pc (const -4))) > (const 11))) > ) > [...] Yes, if the "current pc" were thusly available. I believe however that it is not, and that this will likely require hand-crafted assembler operand parsers / relocations, and all that good stuff. For an older Cygnus-authored target port, we built something called "complex relocations", which can be used to automatically encode complex link-time expressions into assembly operands. IIRC this part is being prepared for contribution to the FSF code base, but this is bound to be a controversial addition. - FChE