From patchwork Sat Dec 21 14:42:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yoshinori Sato X-Patchwork-Id: 182357 Delivered-To: patch@linaro.org Received: by 2002:a92:1f98:0:0:0:0:0 with SMTP id f24csp1891217ilf; Sat, 21 Dec 2019 06:51:05 -0800 (PST) X-Google-Smtp-Source: APXvYqzROQJ1YRdH36k30WbUmSX+48JIIBBbEi4vMN4mN2hduEQgtxSR8XQrj997+aYoO8M6yPO+ X-Received: by 2002:ac8:747:: with SMTP id k7mr16198212qth.120.1576939865916; Sat, 21 Dec 2019 06:51:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576939865; cv=none; d=google.com; s=arc-20160816; b=MDR3flA1b2EbCfrWBw5uDhROvJ5rWXeD92ico+1eR4SE4NgzYvxKIt63NKyhr7d4gO 4xVO4lCyMMEJRR+vMBHMkdLpQa1hCgi3CjyTCQOVBHa5L9w48dNNJGusa2lqyHr+6u5S djT78Hnt0rTkI4z2KuvjPUggJua3K8vmkobgqlJtT2fcXR3rBVTwGO9eTQFB+8+3RrvD r8NAK6tWClWBjBP4ObfUuUYlj4yo56qeIQQNONp9LIz+27w5Fg14YVjhIJfNvLgzKOge 3QZTNj6IkjxMjKJMPWDkeQXshSYAO1Bt2040SqRjB2ZOabU18bzzBi4hXm4eYP3VjsQC 0ImQ== 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=bW6Y2W8QDQ6fajR999O1+lu7VkdNq1qCRX3+JmAvj5+afc/bOXNP0Vr4NXdUaaz16K HJvjFL79hQtox2h+QaMlSo76jhzaGk5srcmINYBTyv65FhXdiqnyPjA0IRXM+xBeOEiY vS8FeFK+LTJhSrnJsyeF46C/h+pTzBaOKzD8CaLGI2fO6EAFvje9DCsoy3twtqOyOaFm uwRHnHClUPrsYDq6UwmYIPRh4i6d7GdzZRXofMuH5e2SMXYxjGM5XgdOzLkJ9XTZ3pHp jAVL8FI+QwY2sbR+llnovanOb1zewL/cNR2Mgn7qhQciN9kIT1WnDqTkcuOoQPSNtRKl aMuw== 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 f23si6222668qto.101.2019.12.21.06.51.05 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Dec 2019 06:51:05 -0800 (PST) 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]:39778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iig5x-0007IS-24 for patch@linaro.org; Sat, 21 Dec 2019 09:51:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46470) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iify2-0005FT-CF for qemu-devel@nongnu.org; Sat, 21 Dec 2019 09:42:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iifxz-0002CW-SG for qemu-devel@nongnu.org; Sat, 21 Dec 2019 09:42:53 -0500 Received: from mail01.asahi-net.or.jp ([202.224.55.13]:35475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iifxz-0002AV-Bx for qemu-devel@nongnu.org; Sat, 21 Dec 2019 09:42:51 -0500 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 mail01.asahi-net.or.jp (Postfix) with ESMTPA id 746A41BD04; Sat, 21 Dec 2019 23:42:49 +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 34BAA24008F; Sat, 21 Dec 2019 23:42:49 +0900 (JST) From: Yoshinori Sato To: qemu-devel@nongnu.org Subject: [PATCH v27 10/21] target/rx: Use prt_ldmi for XCHG_mr disassembly Date: Sat, 21 Dec 2019 23:42:27 +0900 Message-Id: <20191221144238.127766-11-ysato@users.sourceforge.jp> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191221144238.127766-1-ysato@users.sourceforge.jp> References: <20191221144238.127766-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.13 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: philmd@redhat.com, Richard Henderson , Yoshinori Sato 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; }