This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Need help at writing basic igen simulator
- From: David Voit <david dot voit at gmail dot com>
- To: Andrew Cagney <cagney at gnu dot org>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 15 Sep 2004 21:40:31 +0200
- Subject: Re: Need help at writing basic igen simulator
- References: <pan.2004.09.14.21.03.59.671898@gmail.com> <41476C5D.4050209@gnu.org>
- Reply-to: David Voit <david dot voit at gmail dot com>
On Tue, 14 Sep 2004 18:10:37 -0400, Andrew Cagney <cagney@gnu.org> 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