public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* How does CGEN decide what ifields to use for CGEN_IVALUE?
@ 2009-01-14 17:09 John Stubley
  2009-01-14 18:49 ` Dave Brolley
  0 siblings, 1 reply; 5+ messages in thread
From: John Stubley @ 2009-01-14 17:09 UTC (permalink / raw)
  To: cgen

Hi,

I am writing a binutils port for our own internal proprietary CPU using
CGEN.  I am using binutils v2.19 stable and cgen monthly snapshot
20081101.

I am seeing some odd behaviour in the disassembly shown by objdump when
it is analysing the opcodes I am generating using GAS.  In some cases,
if I change the value of an operand I can cause the disassembler to fail
to recognise the opcode.

Our instruction packing is quite tight and so some of the operand fields
overlap with some of the opcode mnemonic fields.  I have tried to define
the instruction families so that they don't overlap, but I can't quite
do it.  Ideally, I would like to teach CGEN a simple hierarchy of
mnemonics so that it can order the opcode table correctly.  However, it
appears at first instance that there is no way to write the .cpu file to
give CGEN enough hints.  I assume it has something to do with the
CGEN_OPCODE_* macros for CGEN_IVALUE in cgen.h.  I have tried setting
the decode-assist in the define-isa, but this appears to have no effect.

I would appreciate any pointers that you could give me, particularly if
there is an existing CPU that attempts something similar.

With thanks,

John Stubley
Development Engineer
DisplayLink (UK) Limited

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-23  9:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-14 17:09 How does CGEN decide what ifields to use for CGEN_IVALUE? John Stubley
2009-01-14 18:49 ` Dave Brolley
2009-01-16  8:36   ` John Stubley
2009-01-22 17:33     ` Dave Brolley
2009-01-23  9:20       ` John Stubley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).