Need help at writing basic igen simulator
David Voit
david.voit@gmail.com
Wed Sep 15 19:41:00 GMT 2004
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
More information about the Gdb
mailing list