From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE272C04AB3 for ; Mon, 27 May 2019 15:45:23 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 688DB208CA for ; Mon, 27 May 2019 15:45:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 688DB208CA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=users.sourceforge.jp Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([127.0.0.1]:47392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVHoQ-0004oJ-E9 for qemu-devel@archiver.kernel.org; Mon, 27 May 2019 11:45:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVHim-0000ZA-Np for qemu-devel@nongnu.org; Mon, 27 May 2019 11:39:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVHil-0007NU-Kj for qemu-devel@nongnu.org; Mon, 27 May 2019 11:39:32 -0400 Received: from mail02.asahi-net.or.jp ([202.224.55.14]:58413) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVHil-0007EG-7s for qemu-devel@nongnu.org; Mon, 27 May 2019 11:39:31 -0400 Received: from h61-195-96-97.vps.ablenet.jp (h61-195-96-97.ablenetvps.ne.jp [61.195.96.97]) (Authenticated sender: PQ4Y-STU) by mail02.asahi-net.or.jp (Postfix) with ESMTPA id CB5E53E813; Tue, 28 May 2019 00:39:28 +0900 (JST) Received: from yo-satoh-debian.ysato.ml (ZM005235.ppp.dion.ne.jp [222.8.5.235]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id 92823240085; Tue, 28 May 2019 00:39:28 +0900 (JST) Date: Tue, 28 May 2019 00:39:04 +0900 Message-ID: <87woib6h5z.wl-ysato@users.sourceforge.jp> From: Yoshinori Sato To: Richard Henderson In-Reply-To: <20190523150803.31504-1-richard.henderson@linaro.org> References: <20190523150803.31504-1-richard.henderson@linaro.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 202.224.55.14 Subject: Re: [Qemu-devel] [PATCH 0/6] target/rx: Improvements to disassembly X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Fri, 24 May 2019 00:07:57 +0900, Richard Henderson wrote: > > Here's a sample of the new output, taken from u-boot.bin: > > IN: > 0xfff8000a: fb 12 00 01 00 00 mov.l #0x00000100, r1 > 0xfff80010: fb 32 f0 13 00 00 mov.l #0x000013f0, r3 > 0xfff80016: 43 13 sub r1, r3 > 0xfff80018: fb 22 00 ea f9 ff mov.l #-398848, r2 > 0xfff8001e: 7f 8f smovf > 0xfff80020: ef 01 mov.l r0, r1 > 0xfff80022: 05 1e 32 00 bsr.a fff83240 > > IN: > 0xfff83240: 72 11 5c fb add #-1188, r1 > 0xfff83244: 75 21 f0 and #-16, r1 > 0xfff83247: 02 rts > > Obviously there are still a few inconsistencies in the > format strings used for the immediates, but the format > is readable and it is easy to look at the opcode to see > how our decode compares to the manual. > Hmm. The output of the immediate value should be the same as the output of objdump. I do not think that it is the proper format, but I did that because it was useful for comparing the results. > > r~ > > > Richard Henderson (6): > target/rx: Disassemble rx_index_addr into a string > target/rx: Replace operand with prt_ldmi in disassembler > target/rx: Use prt_ldmi for XCHG_mr disassembly > target/rx: Emit all disassembly in one prt() > target/rx: Collect all bytes during disassembly > target/rx: Dump bytes for each insn during disassembly > > target/rx/disas.c | 366 +++++++++++++++++++++------------------------- > 1 file changed, 166 insertions(+), 200 deletions(-) > > -- > 2.17.1 > -- Yosinori Sato