From patchwork Wed Feb 12 13:02:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yoshinori Sato X-Patchwork-Id: 183313 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp6546723ile; Wed, 12 Feb 2020 05:07:25 -0800 (PST) X-Google-Smtp-Source: APXvYqymcCXOrzaoIHawTDYdPWlJgEgCBPcDkyRdXBzIgnx3GS2cGb7I0JW5enU7Y31M3H1ep4mr X-Received: by 2002:ae9:ef96:: with SMTP id d144mr6009536qkg.337.1581512845334; Wed, 12 Feb 2020 05:07:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581512845; cv=none; d=google.com; s=arc-20160816; b=oOqekLYWkqlO1YYJX6tdeoM5zPXv4FelN7l3m5gWlixJ6Vq3vu3ezk2lJT0aCTtkek GBSr4ssGYMoFXBGT1f4vYvgc1JeyJzWvKbY92TQc3XQ2GcVcC49xmGEaP18P01N0hFcE 7jK7yO6ZS4n3iN8D/KCFkDWWjDFYJK+L1znjd0ilsMyRNfYMgXBSeRBvqwbwCL803bax /qmRBqzupXbgZf8+mfzeyHO/vzz3iFywd+vJ4Yfnd5DyTaNCG73Odug06dkoTx1C1wyg ZTdJqNkL3La9jdlNe5qdTiGZEpzC9iOCsbp0x6A/U/k5kuoPcL7vUvF4oeDqee3K3X1c G+SA== 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=Lw53g5w4QPLjjObeaHmryiH84jQDx/aD81XEQ80FmrEZnJCAQPn7EEjdR0sfLIB0jT J1Zt4OtxwnDjsZUp8x8Zb0pL+B5lZiadOBKliTIiR8yHeQ3/R68IkMU/V/3+FlzI1+EA zF1LErlaPwOQavsoOJ+IbxA1jfo8TMu3mQy/jSVYQ0eVoY6MfgKg0wXjZYulVjqJqMR6 2gWrOD2i4XhqI9q2VsEk0ecCn0U+6WfnrVooffKzE1Z0xkNq+vAPYmay7Bstu5T2cB8U amLoAumIqc0sszYfBHIKhjCNvhw9aQgF8WJNymj3eRINZ+EjU9AbQubXvMpDgdW/23aG mtOg== 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 g1si109788qki.369.2020.02.12.05.07.25 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Feb 2020 05:07:25 -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]:37406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1rjg-0001Zh-Nz for patch@linaro.org; Wed, 12 Feb 2020 08:07:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33390) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1rgH-0004d7-Vu for qemu-devel@nongnu.org; Wed, 12 Feb 2020 08:03:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1rfs-0008B1-16 for qemu-devel@nongnu.org; Wed, 12 Feb 2020 08:03:53 -0500 Received: from mail03.asahi-net.or.jp ([202.224.55.15]:40888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j1rfr-00089C-Oq for qemu-devel@nongnu.org; Wed, 12 Feb 2020 08:03:27 -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 mail03.asahi-net.or.jp (Postfix) with ESMTPA id CD91CDCA84; Wed, 12 Feb 2020 22:03:21 +0900 (JST) Received: from yo-satoh-debian.localdomain (ae231051.dynamic.ppp.asahi-net.or.jp [14.3.231.51]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id 9C91B24008E; Wed, 12 Feb 2020 22:03:21 +0900 (JST) From: Yoshinori Sato To: qemu-devel@nongnu.org Subject: [PATCH v30 10/22] target/rx: Use prt_ldmi for XCHG_mr disassembly Date: Wed, 12 Feb 2020 22:02:59 +0900 Message-Id: <20200212130311.127515-11-ysato@users.sourceforge.jp> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200212130311.127515-1-ysato@users.sourceforge.jp> References: <20200212130311.127515-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.15 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; }