decodetree: Ensure build_tree does not include values outside insnmask

Reproduced with "scripts/decodetree.py /dev/null".

Backports commit 9b3186e38f00ae0cba36c096e3654f916699f336 from qemu
This commit is contained in:
Philippe Mathieu-Daudé 2019-03-13 11:12:06 -04:00 committed by Lioncash
parent 20994eca53
commit edb21478b7
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -918,7 +918,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