From patchwork Tue Jun 18 14:10:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yoshinori Sato X-Patchwork-Id: 167158 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4299458ilk; Tue, 18 Jun 2019 07:29:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwxpfmr6gYRDP4V0ylJr9phPPdKC5PY9Qzx7NIkYLjZk31buC+Xk0J5HzMaog3VqjGnPgB X-Received: by 2002:a0c:d4b3:: with SMTP id u48mr27055272qvh.246.1560868143631; Tue, 18 Jun 2019 07:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560868143; cv=none; d=google.com; s=arc-20160816; b=C8GU1+VLO8l2qiDGljpPc/WoMNlxM1HTgmjPC77L6KkaXI4iktZ7dhwyebXVm/V/p3 fA4VcvzFYPevBKiFRmvVPIvFoMatZCneSJgftSAdpSdVj1VWqdBIAVNC4bReQ+xRvozM xOppNYLOKqqQfp9N9PCC3+xkrVllzxUD+tK/nHdYB94VIHeQbBJ/zwHMdvwgnrjx95FV W/W6XIgIlkmgf12c9N7tClCuCeY4+xr5LB7pngFJ5Z2nJvtlYV97xeSIZkuz1X5/FoYV 9xIgbni0NmfDslqzqbsIjLzGFZc0jr+GWGetcUmggKT72RxOXltteo9Ta5ZpWhEmXPAq IdWw== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from; bh=3ixQgoEQy/tNg2tvPIujS57kSkNC+oo3YmACrXAgGx8=; b=0QHB05dGxiqjpQ9oz8I/F6sR5jQzhvLALHEvsVOC0W7XRpIhs1xxQ+oI93CLPzz9Dw scW4/GTiuR7CXkBAGqS0oHEm5sqYhccSvSVWdgsikVDig7Gs9kqUNf9i5Ww9scjiWXP4 UTYbLwJ7MHvJrKfAao3SwdTSfGzW2vkeOTU7Bj+YmLTNnlekORqLGqplTApyXRpoBUeN TfIPrw8NGp/r5e7ALJZWogjBd7o7gJbBGbVvxuR2WoUUIYJxOwIWlcTK+s0kqpn4/myC WpyYymRp4vjPb9xrgaEj5WncDPg/1m9hqX1SQIDDEuk46oz9JV/SYfWDoaeDkdbXwwn1 QlKg== 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 y55si390552qtj.216.2019.06.18.07.29.03 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Jun 2019 07:29:03 -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]:58526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdF6b-0001dm-IQ for patch@linaro.org; Tue, 18 Jun 2019 10:29:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60206) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdEpz-0002yj-8S for qemu-devel@nongnu.org; Tue, 18 Jun 2019 10:11:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdEpq-00081e-3c for qemu-devel@nongnu.org; Tue, 18 Jun 2019 10:11:44 -0400 Received: from mail01.asahi-net.or.jp ([202.224.55.13]:60256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hdEpl-0007vK-L5 for qemu-devel@nongnu.org; Tue, 18 Jun 2019 10:11:39 -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 mail01.asahi-net.or.jp (Postfix) with ESMTPA id ACA02126D27; Tue, 18 Jun 2019 23:11:33 +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 5910A240085; Tue, 18 Jun 2019 23:11:32 +0900 (JST) From: Yoshinori Sato To: qemu-devel@nongnu.org Date: Tue, 18 Jun 2019 23:10:58 +0900 Message-Id: <20190618141118.52955-20-ysato@users.sourceforge.jp> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190618141118.52955-1-ysato@users.sourceforge.jp> References: <20190618141118.52955-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 Subject: [Qemu-devel] [PATCH v21 10/21] target/rx: Use prt_ldmi for XCHG_mr disassembly 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.11.0 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; }