From patchwork Fri May 31 13:43:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 165531 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp785585ili; Fri, 31 May 2019 06:55:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAvxf4O80RA613sMFWPQWeoSBcNtJWfrR4tnEfxo3JdswhgPtfE5oc3GmRMi6IctJ9zhRz X-Received: by 2002:a37:a9c5:: with SMTP id s188mr8893895qke.274.1559310939179; Fri, 31 May 2019 06:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559310939; cv=none; d=google.com; s=arc-20160816; b=OMtPL45IW1AIPFi5UR35x62ePPwiHTooS+14+Kila3PAXt6I7EYAkIQ5wRBli0PyW9 O+Qxgm5nhq18aRJfKgvMDHvBHO5WGpi89OZpEtFA/2JWVfxSsgB4FMqResQUDg+nIDcw GFeuf+G0UH8tYyA5me5YyUyC+eWS4uSOsYReWL83DFpywSmWUrfMRXwvak9gztpy8GmN pfwSkosjjb0LvqJAxx717YJe1IW65aK7nzrK+B5I/HZQMR31GnkphT+OppvBTluA0Vat H71cqW4Zv0IBofsz/4Egvl4UvCMkuKTapuRfRxpDXshlVMRPC7+fWPWVLky/SZl2xVPX D/fw== 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:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=gloJ+8rW9WKJEh40VUZKHrYM42QYGddhU2f4AmbnBwc=; b=gFHPhb8W68UyMSW7aAM/d93JH+Z0S3s2gnX+bCgOD4Cc6EQG0PNqs94AAQX0s0D5Ay /GfC/SMrhcAicYnzrRGmEqxJq74rnW+GPb043y6vvYOznHRStIxQL7b3pZ+XRhfoAqFr mLBdeTEParH5A54P5H6FOTG9TrItshJfsuAq5vDONAh5lhxcXJcmiIAYHqOGt2Fgm7MU Q15NZqbYpMTzb52hd5R4zRMCkrDd2nkUdzVJONpX48Cp3fHdjgsafML5wjlLJuXl5UX0 KWN+7ay9vkJlaKZJHW/lwimKNjshldKctLNxqiKW650VPU09BjIQNyd/uuiPuwKpcybA 6Uew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Da9ocMcq; 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"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b4si4277754qti.82.2019.05.31.06.55.39 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 31 May 2019 06:55:39 -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; dkim=fail header.i=@linaro.org header.s=google header.b=Da9ocMcq; 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"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:43964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWi0Q-00086F-MT for patch@linaro.org; Fri, 31 May 2019 09:55:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWhoz-0007f9-CK for qemu-devel@nongnu.org; Fri, 31 May 2019 09:43:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWhoy-0000dS-Cv for qemu-devel@nongnu.org; Fri, 31 May 2019 09:43:49 -0400 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]:41468) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hWhoy-0000d4-7w for qemu-devel@nongnu.org; Fri, 31 May 2019 09:43:48 -0400 Received: by mail-oi1-x243.google.com with SMTP id b21so3779943oic.8 for ; Fri, 31 May 2019 06:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gloJ+8rW9WKJEh40VUZKHrYM42QYGddhU2f4AmbnBwc=; b=Da9ocMcqfejffvZ8qQs6Vvo3EvWTNoXWSXGD5WSK5tKY1gLgIQOv4spkds7Owo4gWZ 1Ui7/dRFCQWaEe2BROm+xmOClmmDI9GEjvjcDu4PwQxFrQ3otLo97jvnWAFYTfDS+XyQ aaE/rzh7ROWMvg1ZgaV8BjAA7jMm0GiIuZtAu0+vo8tHNWidx92He9GLkhmutdBhTGvV NU3GAIh7MdYJuZ7oZxqiJB6QkzrioeHktRZhEjD1/xQYiQ/KGETVMCeRvvkvhATjBnxY JX3JM0+Tj/sRIvB+ofRtNS9QuHX08yFVeDQMSVgl5Bf1LOsoe/DtgvNZlXc7roWIHeLc 48uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gloJ+8rW9WKJEh40VUZKHrYM42QYGddhU2f4AmbnBwc=; b=i03kpPe/EYD5mswFcCEaclRfYGYVePTUi83h4D96pDys3pBVsobq0PjsHLlj7Ar+ru 8AXH8wvRkwYuaCr1HHswU8hEwtxup0g3ehWGnBN9E6fpvc3zs1kPo0nhjwmK8xttijFF qQbKyqNWLJxW3X2pzsVINAln36LUhmPZao7vLMfw1bwk0neOpwEnWsdFnvr7+IF3Kw5A KEAe1sAR+WuRM4o7dIa+WVmdtf9LF1OVYZOXhfd/FNq0gszdzD20dQpIkQazOWqd1cem S3DsTWPzWRcy71CV0Vv3JPD5Z0I3VXeqrB98FYKuYT1aAO4QYXF1bOnaX6toeYNDlLNJ sq7g== X-Gm-Message-State: APjAAAVW6pWoempaCNC0K5qbtZ3YUuiEdSriJMtsOlz5p+4Xux+SXrQX xqXSDHKlNoSH28gfpnDOcXzIsrsIO+llOw== X-Received: by 2002:aca:e50d:: with SMTP id c13mr2212055oih.42.1559310227471; Fri, 31 May 2019 06:43:47 -0700 (PDT) Received: from localhost.localdomain (168.189-204-159.bestelclientes.com.mx. [189.204.159.168]) by smtp.gmail.com with ESMTPSA id r23sm2391176otg.49.2019.05.31.06.43.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 May 2019 06:43:47 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 31 May 2019 08:43:12 -0500 Message-Id: <20190531134315.4109-21-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190531134315.4109-1-richard.henderson@linaro.org> References: <20190531134315.4109-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::243 Subject: [Qemu-devel] [PATCH v16 20/23] target/rx: Use prt_ldmi for XCHG_mr disassembly X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: philmd@redhat.com, ysato@users.sourceforge.jp Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Note that the ld == 3 case handled by prt_ldmi is decoded as XCHG_rr and cannot appear here. Reviewed-by: Yoshinori Sato Signed-off-by: Richard Henderson --- target/rx/disas.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- 2.17.1 Reviewed-by: Philippe Mathieu-Daudé 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; }