From patchwork Mon Oct 14 11:57:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yoshinori Sato X-Patchwork-Id: 176207 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp4417722ill; Mon, 14 Oct 2019 05:04:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyux8kBazbPcyL6MBEadH4y3JocbN8/pDJfj6JaFrzZAAOjTdAE5tD4jU/3+fW/6wmD+BJw X-Received: by 2002:a37:9343:: with SMTP id v64mr27791253qkd.241.1571054644473; Mon, 14 Oct 2019 05:04:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571054644; cv=none; d=google.com; s=arc-20160816; b=bGqzSbOHaFnA6ZxTPozeSQfWxv4YRP1Vj+WbWT6oDiSrZ9D8AwN98is0yjZa5j3tXX yc00fodFuIQhWQFKlTJ5TgqXxZdv2+/QX6w3XVfBYhz7zh5SROALUHXNmq/OkA0QIPNz lriFRORvRj91o3+zEgSqCgviAU68BBftPoXWT73D5onEWk3XmXME7hUleK7uSIqgZ9z8 DJiTHv+naAlGOvM38e+RZGmK7diDsHgiWLNsOW8mtg5wIsXJFTChIDAKFvr0By2dTQDO 8kWK+X860oGjODccPMFLxRQO1dDxWNEN+DjbvuA1Ykf5OLCy6cQU8Z4hNALffCSE9/Uz 9Zdw== 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=upFW/t+v3JKVS4Tp/P9fnggTBE7jnssGeFj51tDmjUGks6BROKfQ8WPGcjWyraPlsC MFf5CVpBQg1XYaL9hCz/ul8ym1HYsHk/bp2oVfNEwmDNR1CC/vZ42rPa2cKC42oCCbPB AGjI+H9HO5tDaeOk3XSr2fKaQ9ZJJPug4zSWMhzBSsL3ygicOevdU8kB1cwYokssUP6U hE6bf6AWXb+qUQE3I9+OjLrQTpyX3qJVvcPyxoJGAjFeJlYOGbEm4AHWNvJOKNhazSUn nXLkKHUr4smsqmA0AX6k55nRk3RV/4F2KpAAsSWvN763NKHS+gO1op1Ly4K45xcmCciE quhg== 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 d20si16592649qkk.217.2019.10.14.05.04.04 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Oct 2019 05:04:04 -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]:48420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJz51-00025h-Vy for patch@linaro.org; Mon, 14 Oct 2019 08:04:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53395) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJyzJ-0005Pr-UU for qemu-devel@nongnu.org; Mon, 14 Oct 2019 07:58:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJyzI-0003Uw-Kh for qemu-devel@nongnu.org; Mon, 14 Oct 2019 07:58:09 -0400 Received: from mail02.asahi-net.or.jp ([202.224.55.14]:35677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iJyzI-0003Tx-CF for qemu-devel@nongnu.org; Mon, 14 Oct 2019 07:58:08 -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 A8B496E17E; Mon, 14 Oct 2019 20:58:07 +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 59C5424008F; Mon, 14 Oct 2019 20:58:07 +0900 (JST) From: Yoshinori Sato To: qemu-devel@nongnu.org Subject: [PATCH v26 10/21] target/rx: Use prt_ldmi for XCHG_mr disassembly Date: Mon, 14 Oct 2019 20:57:46 +0900 Message-Id: <20191014115757.51866-11-ysato@users.sourceforge.jp> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191014115757.51866-1-ysato@users.sourceforge.jp> References: <20191014115757.51866-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: 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; }