mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-10 14:57:25 +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):
|
def build_tree(pats, outerbits, outermask):
|
||||||
# Find the intersection of all remaining fixedmask.
|
# Find the intersection of all remaining fixedmask.
|
||||||
innermask = ~outermask
|
innermask = ~outermask & insnmask
|
||||||
for i in pats:
|
for i in pats:
|
||||||
innermask &= i.fixedmask
|
innermask &= i.fixedmask
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue