From patchwork Thu Mar 7 18:56:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 159926 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp7820277jad; Thu, 7 Mar 2019 11:35:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxhB/LNhQZ4mRRhyZ3y7EgydJcn7IRUCprPnPtxrqM6kH1rZIda3GE52RlKVC/48hELzexK X-Received: by 2002:a81:ac4f:: with SMTP id z15mr11557814ywj.59.1551987321673; Thu, 07 Mar 2019 11:35:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551987321; cv=none; d=google.com; s=arc-20160816; b=ucL49sj3AcT2uwgR2RUQ6I3AVSyckEVRif0kLEn2ycfVd+cM7YNrwPqhEkOdNqa46m BKMo0v0l+AvXxG/fCRX53Gk0Sk9HtMuh4WGPUpu6hD741aWS+o590VsYPYbfTeHv6Hni Mnw+VaEzSOMDsnBeY0lenxsurz2Y6EoWYVdg6TBK+qRV60X0SK3aOaW5FDIEgx93WSdU bhauPX9q+lim0wgz8nJvf0edgD5vLubTynLElBOtRsq9Ue+z9iXdgmMIGdHveuj6ztlD PecvPTIeECUhlp7QSJt4MIfsqXeWQJG6PDt1vZArdifnJTXy8+QmUWJwNlkBQKtBW+HG zJmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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=TQcVd3Dqy6iFhltS0ecXUxe7EPe6saLCfPnA5OwEVjU=; b=rJdYhk89bI8lmsuGaC/BfZxAD3Oan8BHFkjmgj+FbiGPX3kufKXr37mZ1fCLIBr04s LrraEsYnFP7U8BcTCChl0a6Iuv1Rtw7Uo95sVM4P9jXcpevVjNpxATEB/gZfk9WgXKKB 2itoJUlhXPDPpvSXEBRZh/BhPuXBwUeox2VTAzmTOL8/WnjPeHPOg6gF3vHnuF0UDeII SYJCZEyMQrUGdHaQLawRUDcT9qbZ04d7UCwwUBKw3CFLWtAB9umXblDS3pg4izNCa7iG ycmW2GtZBN6gD+hGlTDa0kSn5/qJNV8t2o5IUmnGIqst3+TRNH35PKGE/PWtQoI2Re5b 7wEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=A7kI5ztX; 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 191si3152489ybr.410.2019.03.07.11.35.21 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 07 Mar 2019 11:35:21 -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; dkim=fail header.i=@linaro.org header.s=google header.b=A7kI5ztX; 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]:58270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1ynZ-0000V6-7L for patch@linaro.org; Thu, 07 Mar 2019 14:35:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1yC8-0001PO-8Y for qemu-devel@nongnu.org; Thu, 07 Mar 2019 13:56:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1yC7-0002XT-CM for qemu-devel@nongnu.org; Thu, 07 Mar 2019 13:56:40 -0500 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:42649) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1yC7-0002WK-5K for qemu-devel@nongnu.org; Thu, 07 Mar 2019 13:56:39 -0500 Received: by mail-pf1-x433.google.com with SMTP id n74so12130511pfi.9 for ; Thu, 07 Mar 2019 10:56:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=TQcVd3Dqy6iFhltS0ecXUxe7EPe6saLCfPnA5OwEVjU=; b=A7kI5ztXPu1ZM/XkK3JUosr+U0o4dXU8wVVCG/8Cr6c+4r/YD19vPw2H3e8iSRXEqr 6EYY+3EbEK9b0IhSe/o8FV5kp3K4YNcETBJB5HJMJbFfBmA7Ut/cLdZS3VrBEG2hLgch SzHmf33p65kbSGud/z2ny+lRL2Vq4uEeVumuwuChRILgVKkcTFnQnUHU5b1H8yd6HI4s a8YSWQAy30vVmKu4el49vM8tj+KtZGQGYcJgN5Fh7MN2qABZEyHb7OFTfOsiZHc9swao hFdvqcT7GluUqBRzbzAC9ZII8CPATjQfmYjsOXaKHIX41ePLScrag4QrHotzrQ0PIBIf PkLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=TQcVd3Dqy6iFhltS0ecXUxe7EPe6saLCfPnA5OwEVjU=; b=NGMQ34nlG6Se05YgUV6BgmoUJhejr2tonaOS8IDvY6EuC6t70vHPElmWeFH1+mdCr6 wEMGHqdUbVXr+1OsfbYREY3As1IiwOunlOSqmposa9dIpsVkHSPAb9xYQIfmfvvxVGRw cY3fx9uOL8DLCcBEkKr65lnzaf76+1JCThb1vVHFf5SWRHVRKlc/Wux1xHNij0szlA8G wfXuc6eVO0f474YlJPabfpUC4Py0YhMVzLok/+iYLEkASXmVhDLqnDK4KlR2+mZQaC+E 3TUqcxr8mW3h3U7h4gFsTJwV9qYKY2h7OyDVlMJfp4s4hQAYPqmqRAEjEi5hInnbNZwn vfZw== X-Gm-Message-State: APjAAAVyQ8PyR82J7IopUzchom8vnGcsEHAwYmrE0s7RcW/FLIpBIB2u xstoO/N0bevbkWBJ7LtFbsHAeeY1VZg= X-Received: by 2002:a17:902:bb86:: with SMTP id m6mr14281271pls.4.1551984997661; Thu, 07 Mar 2019 10:56:37 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-188-82.tukw.qwest.net. [97.113.188.82]) by smtp.gmail.com with ESMTPSA id g12sm8801973pgr.76.2019.03.07.10.56.36 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Mar 2019 10:56:37 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 7 Mar 2019 10:56:21 -0800 Message-Id: <20190307185622.29026-12-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190307185622.29026-1-richard.henderson@linaro.org> References: <20190307185622.29026-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::433 Subject: [Qemu-devel] [PATCH v3 11/12] decodetree: Prefix extract function names with decode_function 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This makes it easier to name Formats within multiple decode files. Signed-off-by: Richard Henderson --- scripts/decodetree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.2 diff --git a/scripts/decodetree.py b/scripts/decodetree.py index eef32f695f..f8df89e072 100755 --- a/scripts/decodetree.py +++ b/scripts/decodetree.py @@ -312,7 +312,8 @@ class Format(General): """Class representing an instruction format""" def extract_name(self): - return 'extract_' + self.name + global decode_function + return decode_function + '_extract_' + self.name def output_extract(self): output('static void ', self.extract_name(), '(',