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>
This commit is contained in:
Philippe Mathieu-Daudé 2018-12-16 20:07:38 -08:00 committed by Richard Henderson
parent 5d53b0f5d3
commit 9b3186e38f
1 changed files with 1 additions and 1 deletions

View File

@ -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