From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8825 invoked by alias); 28 Dec 2009 22:59:55 -0000 Received: (qmail 8816 invoked by uid 22791); 28 Dec 2009 22:59:54 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-gx0-f215.google.com (HELO mail-gx0-f215.google.com) (209.85.217.215) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Dec 2009 22:59:49 +0000 Received: by gxk7 with SMTP id 7so55768gxk.12 for ; Mon, 28 Dec 2009 14:59:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.91.18.39 with SMTP id v39mr7275513agi.66.1262041188026; Mon, 28 Dec 2009 14:59:48 -0800 (PST) In-Reply-To: <4B39014D.4000203@sebabeach.org> References: <20091227081006.GA23270@doriath.ww600.siemens.net> <4B39014D.4000203@sebabeach.org> Date: Mon, 28 Dec 2009 22:59:00 -0000 Message-ID: Subject: Re: cgen -> opcodes problem From: Dmitry Eremin-Solenikov To: Doug Evans Cc: cgen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2009-q4/txt/msg00054.txt.bz2 On Mon, Dec 28, 2009 at 10:04 PM, Doug Evans wrote: > Dmitry Eremin-Solenikov wrote: >> >> Hello all, >> >> I'm back to my m68hc08 binutils port done via cgen. >> Recently I've again stumbled upon a problem with instructions, >> whose base? length !=3D ISA base length. >> >> E.g. in the attached stripped test case, the 'ttt' instruction either >> (should be assembled as 0x9E 0xF1) is misencoded as 0xsmth 0x00. >> Is this my fault? Or is this the expected behaviour and I should define >> f-seccode in some other way? >> >> Could you please help me? >> >> > > Hi. =A0cgen currently doesn't handle instructions with opcode bits beyond= the > base insn size very well. =A0I have a sandbox with this fixed, but it'll = be > awhile (month or more?) before it all gets checked in. > > In the meantime, setting base-insn-bitsize to 16 may work. =A0[It *should* > work, but there may be attributes of your port I haven't taken into > account.] I haven't dig into that, but setting base-insn-bitsize to 16 broke disassembler badly. --=20 With best wishes Dmitry