From patchwork Fri Sep 27 06:22:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yoshinori Sato X-Patchwork-Id: 174581 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp3085311ill; Thu, 26 Sep 2019 23:39:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyaWXXjdde8Ev/7GAyeMupW42JZIVidPA9heS3Yuysor6S6im6anuWRQg3gWTdejLcdZPRu X-Received: by 2002:a37:be87:: with SMTP id o129mr3087227qkf.254.1569566380779; Thu, 26 Sep 2019 23:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569566380; cv=none; d=google.com; s=arc-20160816; b=mTN0YxRawV8I7WTU/rX7EnviMbyT+OVTlloj7znSfmlp3yKstsGfXEsVHK/ELEZLLY NKz0FouthSRbPe7oxEFM712vjCmqOVzefagZsQgA68TEKwW7BdNEM3CNWJe6ENEcY6tI 2yI0wg+wI8dug+A2KiAqsIACN0DazTrYPff2/RoiASJhkWctC3ULQ1QD3lbRa4dftSw9 Ru/rd7aoIbSZpJqtCg4x6JyqwuuFRMJH090reZGv/GukC3FpVnq7YFacyWtE7TSjU8hr TytZ1UksC5aRo+geXoz3NZsGIsqj4A2I827IC+RNK5waMju2YqPUYYqUz7Lm1gn9Xmvf u48Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from; bh=vBgmqVV1HHXMsA9aXkS1dhyBW4HB0voCVVWuH7KTmpU=; b=a6//2xzZtrMIvP1GlKCw5SYShSUtnDstqtC2fgSGdeCFrmNWeXYl/GmX9gmewBqDQb S8eXS6EB6ic0JvXN2zPSq2OMof9TEcgP+m2UF0JDunOiDWd3q2rQY8057x4mBAYIxZ3P WVTeZ2XoVcN9ATgVFhHP+roaDvyl9c4+PA93/pHPYW+Gp72mEmY9G3bKpkfL2VNtGoVr j+8lzQR1LMqE477EMYhD9j8plaWY318NRuT40y2yw2q3aDEH+sqGab7roE6ebuS9ClEH WzyAbbIWMVmEwsUpcbvkJ05UPkx/9mbMn7g3phbpB+N/AzXfmHdpyXpiFmxee8xqIRly PzbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z187si1779295qkd.135.2019.09.26.23.39.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Sep 2019 23:39:40 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1]:46978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDjul-0004Wk-Ql for patch@linaro.org; Fri, 27 Sep 2019 02:39:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53638) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iDjes-0007B8-P4 for qemu-devel@nongnu.org; Fri, 27 Sep 2019 02:23:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iDjeq-00045A-WB for qemu-devel@nongnu.org; Fri, 27 Sep 2019 02:23:14 -0400 Received: from mail02.asahi-net.or.jp ([202.224.55.14]:59379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iDjeq-00042X-NE for qemu-devel@nongnu.org; Fri, 27 Sep 2019 02:23:12 -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 284146CD08; Fri, 27 Sep 2019 15:23:12 +0900 (JST) Received: from yo-satoh-debian.localdomain (ZM005235.ppp.dion.ne.jp [222.8.5.235]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id D3D6F240086; Fri, 27 Sep 2019 15:23:11 +0900 (JST) From: Yoshinori Sato To: qemu-devel@nongnu.org Subject: [PATCH v25 10/22] target/rx: Use prt_ldmi for XCHG_mr disassembly Date: Fri, 27 Sep 2019 15:22:50 +0900 Message-Id: <20190927062302.110144-11-ysato@users.sourceforge.jp> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190927062302.110144-1-ysato@users.sourceforge.jp> References: <20190927062302.110144-1-ysato@users.sourceforge.jp> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 202.224.55.14 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, imammedo@redhat.com, Richard Henderson , Yoshinori Sato , philmd@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Note that the ld == 3 case handled by prt_ldmi is decoded as XCHG_rr and cannot appear here. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-21-ysato@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/rx/disas.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- 2.20.1 diff --git a/target/rx/disas.c b/target/rx/disas.c index 515b365528..db10385fd0 100644 --- a/target/rx/disas.c +++ b/target/rx/disas.c @@ -366,13 +366,7 @@ static bool trans_XCHG_rr(DisasContext *ctx, arg_XCHG_rr *a) /* xchg dsp[rs].,rd */ static bool trans_XCHG_mr(DisasContext *ctx, arg_XCHG_mr *a) { - static const char msize[][4] = { - "b", "w", "l", "ub", "uw", - }; - char dsp[8]; - - rx_index_addr(ctx, dsp, a->ld, a->mi); - prt("xchg\t%s[r%d].%s, r%d", dsp, a->rs, msize[a->mi], a->rd); + prt_ldmi(ctx, "xchg", a->ld, a->mi, a->rs, a->rd); return true; }