summary refs log tree commit diff stats
path: root/scripts/decodetree.py
diff options
context:
space:
mode:
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>2018-03-19 12:58:46 +0100
committerRichard Henderson <richard.henderson@linaro.org>2018-03-26 22:34:07 +0800
commit83d7c40c92cdfb1cd2d5d31f4539b22dc17fbcce (patch)
tree21c0635f230f1608ce61c01054f782919b7093a8 /scripts/decodetree.py
parent2ffd221d07a671f72354a063d3080f244ec80b20 (diff)
downloadfocaccia-qemu-83d7c40c92cdfb1cd2d5d31f4539b22dc17fbcce.tar.gz
focaccia-qemu-83d7c40c92cdfb1cd2d5d31f4539b22dc17fbcce.zip
scripts/decodetree: Fix insnmask not marked as global in main()
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>
Diffstat (limited to 'scripts/decodetree.py')
-rwxr-xr-xscripts/decodetree.py1
1 files changed, 1 insertions, 0 deletions
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 '