diff mbox series

[PULL,1/1] scripts/decodetree: Fix insnmask not marked as global in main()

Message ID 20180326144730.6351-2-richard.henderson@linaro.org
State New
Headers show
Series decodetree: fix 16-bit insns | expand

Commit Message

Richard Henderson March 26, 2018, 2:47 p.m. UTC
From: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>


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 <peer.adelt@hni.uni-paderborn.de>

Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>

Message-Id: <20180319115846.9662-1-kbastian@mail.uni-paderborn.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 scripts/decodetree.py | 1 +
 1 file changed, 1 insertion(+)

-- 
2.14.3
diff mbox series

Patch

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 '