From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24073 invoked by alias); 16 Jun 2013 13:59:43 -0000 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 Received: (qmail 24049 invoked by uid 89); 16 Jun 2013 13:59:37 -0000 X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-wg0-f48.google.com (HELO mail-wg0-f48.google.com) (74.125.82.48) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sun, 16 Jun 2013 13:59:36 +0000 Received: by mail-wg0-f48.google.com with SMTP id f11so1673057wgh.27 for ; Sun, 16 Jun 2013 06:59:34 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.9.242 with SMTP id d18mr2790128wib.18.1371391174152; Sun, 16 Jun 2013 06:59:34 -0700 (PDT) Received: by 10.180.104.230 with HTTP; Sun, 16 Jun 2013 06:59:34 -0700 (PDT) In-Reply-To: <20130612225248.GB31128@redhat.com> References: <20130611142000.GA31128@redhat.com> <20130612225248.GB31128@redhat.com> Date: Sun, 16 Jun 2013 13:59:00 -0000 Message-ID: Subject: Re: ifield's value processing -- help is needed From: Lev Yudalevich To: "Frank Ch. Eigler" Cc: cgen@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2013-q2/txt/msg00008.txt.bz2 Thank you very much!!! On Thu, Jun 13, 2013 at 1:52 AM, Frank Ch. Eigler wrote: > Hi - > > On Wed, Jun 12, 2013 at 12:27:06PM +0300, Lev Yudalevich wrote: > >> [...] for example, I'd have to know the currently active isa inside >> the cgen_dis_hash function and I couldn't find a guide or an example >> of using CGEN_COMPUTE_ISA, except for a mention of its existence in >> the CGEN documentation). > > When disassembling (or simulating the execution of) anything, you > usually have to specify a-priori the ISA of the binary dump. (If you > want to try auto-detection, that'd have to be done via hand-written > code in the .opc file or elsewhere.) For example, see how > disasemble_info* is passed into the generated default_print_insn() > function; or examples like sh* with its compact & media ISA's or m32rc > with its m16c/m32c. > > - FChE