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>
This commit is contained in:
Bastian Koppelmann 2018-03-19 12:58:46 +01:00 committed by Richard Henderson
parent 2ffd221d07
commit 83d7c40c92

View File

@ -972,6 +972,7 @@ def main():
global input_file
global insnwidth
global insntype
global insnmask
decode_function = 'decode'
decode_scope = 'static '