From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14713 invoked by alias); 26 Oct 2009 10:45:29 -0000 Received: (qmail 14701 invoked by uid 22791); 26 Oct 2009 10:45:28 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-yx0-f189.google.com (HELO mail-yx0-f189.google.com) (209.85.210.189) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Oct 2009 10:45:23 +0000 Received: by yxe27 with SMTP id 27so10334392yxe.10 for ; Mon, 26 Oct 2009 03:45:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.62.13 with SMTP id p13mr8932022ank.25.1256553922278; Mon, 26 Oct 2009 03:45:22 -0700 (PDT) Date: Mon, 26 Oct 2009 10:45:00 -0000 Message-ID: Subject: cgen->sim question From: Dmitry Eremin-Solenikov To: cgen Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2009-q4/txt/msg00023.txt.bz2 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