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


If you leave this out:

{
	/* TODO */
}

igen should automatically generate code to throw an unimplemented instruction exception.


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'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.

Andrew



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