From patchwork Tue Oct 23 12:04:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 149445 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp613032ljp; Tue, 23 Oct 2018 05:10:26 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Fb1TrmcmBcErEtRlCq1VmFX6wH1iyTiI80/6O31kZe5BR1QBxvaeHhANGVvL0Y8Q292YJ X-Received: by 2002:ac8:23ed:: with SMTP id r42-v6mr45391195qtr.89.1540296626224; Tue, 23 Oct 2018 05:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540296626; cv=none; d=google.com; s=arc-20160816; b=wIy9ZGa+OHFb1ESdLyZ4AXCaeLAUvQCPKYDh5uzCPVwT2K+/rFiRoAFCXhhxExPDjJ fx5Yu0zEgmTBBtZuljNbwWtD+fOadajrdtPprC8T88Yhps4xano/UNB1VfCcwUEOwWS2 jORd0CodtTRy25bBrzwVfCB05UmspM9cEOfvOEP+YVAXp+iMgsczRFl4MPQ4nOHRkQX7 B9utdmOoW72jnh/HmcImaYuaZ/roxuCoMXovpIW6Ec92IJtcUpQbGECz6HOZP8/zLOsf vAXH1XYcyUu6/sHX/IoJRFfGpKeJ0YQkYLzb+00pIBFKPufM5F5vGTxqj7qigvvm75X1 wJ7g== 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=e/4Yqfx4/yk3F/wZ/8rVF+K4/lcEEkjMhyoAq5K47Ho=; b=C5PsdiOakHgTaSDzY4zmKnk4q/qM9HkNfMEdAfkgnJyhtCmO13AAVd8VV3j4mKIlGB GncZfOYKOqfluUnlj/Undu4zafodxPcjlfMRIC/7Cpwz1leq3lH8mWuBjLnzkvnvaXtJ D+LU4nM/Tlv1MSDSqHPyEepzD+lTUGL7QY/i8ivneFvEw4++LxSZoNLq6KpYoEqZDYA1 M0IWhlu281m1Rdi5CyU0RCmvjBlP+frT1SJc2pRYTJaV9BDUxy5pEG7znt+O6sdJfQjI KXY1e3/ZPA9QB1+82HunvgBYjxrThY3dQdoglnzIW8RNmM0BXxkxj3XwQbCfKL84+wkK /OMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TyTZ1Q0P; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id k11si898001qvc.180.2018.10.23.05.10.26 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 23 Oct 2018 05:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TyTZ1Q0P; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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 ([::1]:40746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEvVx-0003JP-LG for patch@linaro.org; Tue, 23 Oct 2018 08:10:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEvQw-0005lQ-8v for qemu-devel@nongnu.org; Tue, 23 Oct 2018 08:05:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEvQq-0007Xs-6M for qemu-devel@nongnu.org; Tue, 23 Oct 2018 08:05:14 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:37865) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gEvQp-0007WU-V2 for qemu-devel@nongnu.org; Tue, 23 Oct 2018 08:05:08 -0400 Received: by mail-wr1-x434.google.com with SMTP id g9-v6so1410469wrq.4 for ; Tue, 23 Oct 2018 05:05:06 -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=e/4Yqfx4/yk3F/wZ/8rVF+K4/lcEEkjMhyoAq5K47Ho=; b=TyTZ1Q0PCZXr5hG9ooVxpfC/K5WGc+bUCADagVoTnvWG/l3+S6GRjmvfWVJ73Lv00c O2jyv5PGDJCdRxusEOWGKNcMQnZM0aLOasBaa37L96SyYGC5tNS+stkV74+dR2LGSOUc uFzk2az5VrhRbEvJGjjT5UZ8WXqLjPFlAhbQA= 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=e/4Yqfx4/yk3F/wZ/8rVF+K4/lcEEkjMhyoAq5K47Ho=; b=EyxtBCYzHx5GMPIvQ1S7Me/aGGUymi6NU0pbc3Ajrh1Ok8zszI/hD2pPAz4sRD8rLl BGwVWGy5frWytRKU/ANue0oHyjLSHvidoxDt0F3BB5mFjtujq2IIPhnnwaA3Auf7E+bH zrGTnj1QVWmxUn50N9ONOaaa2Iygnd+RZtVpYV5Cghw1pwJ7kFER5LEB8E3+V5ycGgoq i1cqXO46t2/5Mf6Yl8SskY0+IeXRTm82WGVy/IuidBDdI0gJafBIAMRZKxm4+NQE3JIY I9ZK9L+f71Y9w5ijSWoX8i/h5XDCX5dAXMYY/bHsmY+qQwyNXaUnNpwjWKn7NnPhrfSp nenQ== X-Gm-Message-State: ABuFfojwdjOwxbjy8s9D+1nZH+CIemqF9sV9rWtTcpv6gOgg/EiGXM23 iQGmM7lY+UlBKZd8PzJbn+XZtZ0Jpdc= X-Received: by 2002:adf:8022:: with SMTP id 31-v6mr53169160wrk.16.1540296305332; Tue, 23 Oct 2018 05:05:05 -0700 (PDT) Received: from cloudburst.twiddle.net.net ([185.7.230.213]) by smtp.gmail.com with ESMTPSA id a1-v6sm1009200wrt.79.2018.10.23.05.05.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Oct 2018 05:05:04 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 23 Oct 2018 13:04:49 +0100 Message-Id: <20181023120454.28553-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181023120454.28553-1-richard.henderson@linaro.org> References: <20181023120454.28553-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::434 Subject: [Qemu-devel] [PATCH 2/7] decodetree: Remove "insn" argument from trans_* expanders 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: sagark@eecs.berkeley.edu, kbastian@mail.uni-paderborn.de, palmer@sifive.com, peer.adelt@hni.uni-paderborn.de, Alistair.Francis@wdc.com, mjc@sifive.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" ??? Needs simultaneous corresponding changes to all translators using decodetree. --- scripts/decodetree.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.17.2 diff --git a/scripts/decodetree.py b/scripts/decodetree.py index a9b10452ef..c0bb447095 100755 --- a/scripts/decodetree.py +++ b/scripts/decodetree.py @@ -468,8 +468,7 @@ class Pattern(General): output('typedef ', self.base.base.struct_name(), ' arg_', self.name, ';\n') output(translate_scope, 'bool ', translate_prefix, '_', self.name, - '(DisasContext *ctx, arg_', self.name, - ' *a, ', insntype, ' insn);\n') + '(DisasContext *ctx, arg_', self.name, ' *a);\n') def output_code(self, i, extracted, outerbits, outermask): global translate_prefix @@ -481,7 +480,7 @@ class Pattern(General): for n, f in self.fields.items(): output(ind, 'u.f_', arg, '.', n, ' = ', f.str_extract(), ';\n') output(ind, 'return ', translate_prefix, '_', self.name, - '(ctx, &u.f_', arg, ', insn);\n') + '(ctx, &u.f_', arg, ');\n') # end Pattern