This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Need help at writing basic igen simulator


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]