Message ID | 20200123132525.80891-11-ysato@users.sourceforge.jp |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=users.sourceforge.jp Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 483QPW4h3Zz9sSL for <incoming@patchwork.ozlabs.org>; Fri, 24 Jan 2020 01:58:07 +1100 (AEDT) Received: from localhost ([::1]:58610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1iudvn-0003xn-TN for incoming@patchwork.ozlabs.org; Thu, 23 Jan 2020 09:58:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46095) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <ysato@users.sourceforge.jp>) id 1iucUN-0001Eo-Ui for qemu-devel@nongnu.org; Thu, 23 Jan 2020 08:25:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <ysato@users.sourceforge.jp>) id 1iucUL-0000oV-Jn for qemu-devel@nongnu.org; Thu, 23 Jan 2020 08:25:39 -0500 Received: from mail02.asahi-net.or.jp ([202.224.55.14]:59665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ysato@users.sourceforge.jp>) id 1iucUL-0000mP-80 for qemu-devel@nongnu.org; Thu, 23 Jan 2020 08:25:37 -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 mail02.asahi-net.or.jp (Postfix) with ESMTPA id 1DF6DBCB26; Thu, 23 Jan 2020 22:25:35 +0900 (JST) Received: from yo-satoh-debian.localdomain (v046114.dynamic.ppp.asahi-net.or.jp [124.155.46.114]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id BF2D824008F; Thu, 23 Jan 2020 22:25:34 +0900 (JST) From: Yoshinori Sato <ysato@users.sourceforge.jp> To: qemu-devel@nongnu.org Subject: [PATCH v29 10/22] target/rx: Use prt_ldmi for XCHG_mr disassembly Date: Thu, 23 Jan 2020 22:25:13 +0900 Message-Id: <20200123132525.80891-11-ysato@users.sourceforge.jp> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200123132525.80891-1-ysato@users.sourceforge.jp> References: <20200123132525.80891-1-ysato@users.sourceforge.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: philmd@redhat.com, Richard Henderson <richard.henderson@linaro.org>, Yoshinori Sato <ysato@users.sourceforge.jp> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
Add RX archtecture support
|
expand
|
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].<mi>,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; }