From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31166 invoked by alias); 15 Sep 2004 19:41:08 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 31112 invoked from network); 15 Sep 2004 19:41:06 -0000 Received: from unknown (HELO mproxy.gmail.com) (64.233.170.192) by sourceware.org with SMTP; 15 Sep 2004 19:41:06 -0000 Received: by mproxy.gmail.com with SMTP id 79so214478rnk for ; Wed, 15 Sep 2004 12:40:37 -0700 (PDT) Received: by 10.38.14.78 with SMTP id 78mr45475rnn; Wed, 15 Sep 2004 12:40:31 -0700 (PDT) Received: by 10.38.171.3 with HTTP; Wed, 15 Sep 2004 12:40:31 -0700 (PDT) Message-ID: <3bd8154f040915124046708905@mail.gmail.com> Date: Wed, 15 Sep 2004 19:41:00 -0000 From: David Voit Reply-To: David Voit To: Andrew Cagney Subject: Re: Need help at writing basic igen simulator Cc: gdb@sources.redhat.com In-Reply-To: <41476C5D.4050209@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41476C5D.4050209@gnu.org> X-SW-Source: 2004-09/txt/msg00127.txt.bz2 On Tue, 14 Sep 2004 18:10:37 -0400, Andrew Cagney wrote: > If you leave this out: > > > { > > /* TODO */ > > } > > igen should automatically generate code to throw an unimplemented > instruction exception. > Thats why it is there :). I want to first write the skeleton for a simulator before doing the actually simulator work. > > If i write the instruction identifer in hexform like this > > "8.0xe3,8.reg,16.value::::setl" igen fails with "ld-insn.c:293: assertion > > failed - word->first->last < 0" it this the correct behavior. > > Hmm, forgotten that it was possible to specify hex values. Looking at > the mn10300, I think you need: > > :option:::insn-specifying-widths:true I look at this. > I've not tried to bring up an IGEN simulator from scratch for some years > - the onces I worked on were rewrites of existing hand written simulators. Thanks for your fast answer. I now try to strip my code (v850 copy) down to a minimum. David