From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4969 invoked by alias); 21 Nov 2002 03:59:18 -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 4961 invoked from network); 21 Nov 2002 03:59:17 -0000 Received: from unknown (HELO hotmail.com) (207.68.162.86) by sources.redhat.com with SMTP; 21 Nov 2002 03:59:17 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 20 Nov 2002 19:59:17 -0800 X-Originating-IP: [61.152.127.213] From: "Jie Zhang" To: Subject: Require some enhancement in CGEN for decoder of disassember Date: Wed, 20 Nov 2002 19:59:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-OriginalArrivalTime: 21 Nov 2002 03:59:17.0222 (UTC) FILETIME=[5CCDB860:01C29112] X-SW-Source: 2002-q4/txt/msg00032.txt.bz2 I encounter a problem when I'm using CGEN to port binutils. In my target, there is a rather strange 4-bit field. There are two insns, A and B. This field is operand in insn A, but opcode for insn B. A and B can be distinguished only by this field. In insn A, the value of the operand can range from 0 through 14. If this field is 15, then the insn is B. If I put the description of insn A before B, insn B is always disassembled as insn A with the wrong operand value 15. I can solve this problem by putting the description fo insn B before A, but this is not a good solution. I wish CGEN can deal with this issue. -Jie Zhang