mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 01:05:36 +00:00
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:
parent
20994eca53
commit
edb21478b7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue