summaryrefslogtreecommitdiffstats
path: root/scripts/decodetree.py
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2018-12-17 05:07:38 +0100
committerRichard Henderson2019-03-12 17:46:58 +0100
commit9b3186e38f00ae0cba36c096e3654f916699f336 (patch)
tree4b34465b41f433232f1a16cd41dec2262ddbbd72 /scripts/decodetree.py
parentdecodetree: Document the usefulness of argument sets (diff)
downloadqemu-9b3186e38f00ae0cba36c096e3654f916699f336.tar.gz
qemu-9b3186e38f00ae0cba36c096e3654f916699f336.tar.xz
qemu-9b3186e38f00ae0cba36c096e3654f916699f336.zip
decodetree: Ensure build_tree does not include values outside insnmask
Reproduced with "scripts/decodetree.py /dev/null". Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts/decodetree.py')
-rwxr-xr-xscripts/decodetree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/decodetree.py b/scripts/decodetree.py
index 33e32ee87f..e26d8253f2 100755
--- a/scripts/decodetree.py
+++ b/scripts/decodetree.py
@@ -784,7 +784,7 @@ class Tree:
def build_tree(pats, outerbits, outermask):
# Find the intersection of all remaining fixedmask.
- innermask = ~outermask
+ innermask = ~outermask & insnmask
for i in pats:
innermask &= i.fixedmask