From patchwork Mon Mar 19 11:58:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Koppelmann X-Patchwork-Id: 10292235 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4B351600F6 for ; Mon, 19 Mar 2018 11:59:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36F2C26E90 for ; Mon, 19 Mar 2018 11:59:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B78C28878; Mon, 19 Mar 2018 11:59:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 73B7326E90 for ; Mon, 19 Mar 2018 11:59:43 +0000 (UTC) Received: from localhost ([::1]:41448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1extS2-00079q-Ow for patchwork-qemu-devel@patchwork.kernel.org; Mon, 19 Mar 2018 07:59:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1extRO-0006oY-Nn for qemu-devel@nongnu.org; Mon, 19 Mar 2018 07:59:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1extRM-0004it-7W for qemu-devel@nongnu.org; Mon, 19 Mar 2018 07:59:02 -0400 Received: from mail.uni-paderborn.de ([131.234.142.9]:40784) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1extRM-0004gm-12 for qemu-devel@nongnu.org; Mon, 19 Mar 2018 07:59:00 -0400 Received: from tweenies.uni-paderborn.de ([131.234.189.21] helo=localhost.localdomain) by mail.uni-paderborn.de with esmtp (Exim 4.89 spheron) id 1extRJ-0005um-HT; Mon, 19 Mar 2018 12:58:57 +0100 Received: from mail.uni-paderborn.de by tweenies with queue id 2441393-4; Mon, 19 Mar 2018 11:58:57 GMT Received: from kbastian@mail.uni-paderborn.de ( [131.234.243.218]) by mail.uni-paderborn.de with SMTP id 1extRJ-0005m9-QQ; Mon, 19 Mar 2018 11:58:57 GMT (envelope-from kbastian@mail.uni-paderborn.de) X-Envelope-From: Received: from [131.234.243.218] (helo=schnipp.uni-paderborn.de) by mail.uni-paderborn.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89 hoth) id 1extRJ-0005m9-QQ; Mon, 19 Mar 2018 12:58:57 +0100 From: Bastian Koppelmann To: qemu-devel@nongnu.org Date: Mon, 19 Mar 2018 12:58:46 +0100 Message-Id: <20180319115846.9662-1-kbastian@mail.uni-paderborn.de> X-Mailer: git-send-email 2.16.2 X-PMX-Version: 6.4.2.2738846, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2018.3.19.115116, AntiVirus-Engine: 5.46.1.0, AntiVirus-Data: 2018.3.16.5461002 X-IMT-Spam-Score: 0.0 () X-IMT-Authenticated-Sender: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 131.234.142.9 Subject: [Qemu-devel] [PATCH] scripts/decodetree: Fix insnmask not marked as global in main() 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: peter.maydell@linaro.org, Peer Adelt , richard.henderson@linaro.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP if '-w 16' was given as a cmdline args a local copy of insnmask is set and not the global one. Signed-off-by: Peer Adelt Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- scripts/decodetree.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/decodetree.py b/scripts/decodetree.py index 41301c84aa..277f9a9bba 100755 --- a/scripts/decodetree.py +++ b/scripts/decodetree.py @@ -972,6 +972,7 @@ def main(): global input_file global insnwidth global insntype + global insnmask decode_function = 'decode' decode_scope = 'static '