public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* cgen->sim question
@ 2009-10-26 10:45 Dmitry Eremin-Solenikov
  2009-10-26 12:26 ` Dave Korn
  0 siblings, 1 reply; 8+ messages in thread
From: Dmitry Eremin-Solenikov @ 2009-10-26 10:45 UTC (permalink / raw)
  To: cgen

Hello,

I have a question regarding generating sim code from cgen description.

I have an instruction operand instantiated from field with type h-addr.
If in the semantics part of the instruction I try to access the operandr
as an address: '(mem QI ddaddr)', I get an error from cgen:

simplify.inc:131:3: op:new-mode: invalid mode for operand `ddaddr': USI

This is the definition of ddaddr:

(dif f-dd-1 "1-byte direct address at 1 position" (ABS-ADDR) 8 8 0 8 UINT #f #f)
(dno ddaddr "direct address" () h-addr f-dd-1)

-- 
With best wishes
Dmitry

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

end of thread, other threads:[~2009-10-30 21:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-26 10:45 cgen->sim question Dmitry Eremin-Solenikov
2009-10-26 12:26 ` Dave Korn
2009-10-26 16:13   ` Doug Evans
2009-10-26 20:13     ` Dmitry Eremin-Solenikov
2009-10-27  7:39       ` Doug Evans
2009-10-28 16:40       ` Doug Evans
2009-10-30 21:59         ` Dmitry Eremin-Solenikov
2009-10-27 18:06     ` Dave Korn

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