mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-10-14 15:02:54 +00:00
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:
parent
5d53b0f5d3
commit
9b3186e38f
|
@ -784,7 +784,7 @@ def str_case(b):
|
||||||
|
|
||||||
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