From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1470 invoked by alias); 26 Oct 2005 01:17:55 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 1461 invoked by uid 22791); 26 Oct 2005 01:17:52 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 26 Oct 2005 01:17:52 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9Q1HoxS031710 for ; Tue, 25 Oct 2005 21:17:50 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9Q1HkV14287; Tue, 25 Oct 2005 21:17:46 -0400 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.toronto.redhat.com [172.16.14.9]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id j9Q1HkSh002752; Tue, 25 Oct 2005 21:17:46 -0400 Received: from tooth.toronto.redhat.com (tooth.toronto.redhat.com [172.16.14.29]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 11AC380028A; Tue, 25 Oct 2005 21:17:46 -0400 (EDT) Received: from tooth.toronto.redhat.com (IDENT:UrcO2vjaGj4/yYHf4iYdQi3sFpPf6swT@localhost [127.0.0.1]) by tooth.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id j9Q1Hjel027137; Tue, 25 Oct 2005 21:17:45 -0400 Received: (from fche@localhost) by tooth.toronto.redhat.com (8.12.8/8.12.8/Submit) id j9Q1HfbP027135; Tue, 25 Oct 2005 21:17:41 -0400 Date: Wed, 26 Oct 2005 01:17:00 -0000 From: "Frank Ch. Eigler" To: Shrirang Khishti Cc: cgen@sources.redhat.com Subject: Re: Problem in decoding instructions in simulator Message-ID: <20051026011741.GC27015@redhat.com> References: <4A1BE23A7B777442B60F4B4916AE0F130830D0F1@sohm.kpit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A1BE23A7B777442B60F4B4916AE0F130830D0F1@sohm.kpit.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2005-q4/txt/msg00023.txt.bz2 Hi - > [...] > 1. Though I have specified little endian in define-cpu construct in > my target.cpu file > [...but...] > #define TARGET_BIG_ENDIAN 1 > Are there any other factors affecting this macro ? The "insn-endian" parameter cpu may be relevant. > 2. My next query is regarding following dump code .. > > 400: e0 20 mov r0,#0x2 > 402: e6 f1 7b 00 mov r1,#0x7b > [...] > Although PC is at the location 0x400 instruction being decoded is from > the location 0x402. What might be reason for this ? Perhaps the define-isa parameters are inconsistent somehow with the actual encoding. > [...] According to me this targetbf_decode is called from mloop.c > file which is generated from mloop.in file . I want to ask whether > beacuse of this file , it is giving above behavior or is there any > other affecting factor ? It is possible, but hard to say without seeing your sources. > Also is there any documentation about how to write mloop.in file. Not really. Take an existing one as a model and modify as needed. - FChE