[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 04/12] decodetree: Ensure build_tree does not inc
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH v3 04/12] decodetree: Ensure build_tree does not include values outside insnmask |
Date: |
Thu, 7 Mar 2019 10:56:14 -0800 |
From: Philippe Mathieu-Daudé <address@hidden>
Reproduced with "scripts/decodetree.py /dev/null".
Reviewed-by: Bastian Koppelmann <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Richard Henderson <address@hidden>
---
scripts/decodetree.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/decodetree.py b/scripts/decodetree.py
index 33e32ee87f..e26d8253f2 100755
--- a/scripts/decodetree.py
+++ b/scripts/decodetree.py
@@ -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
--
2.17.2
- [Qemu-devel] [PATCH v3 00/12] decodetree enhacements, Richard Henderson, 2019/03/07
- [Qemu-devel] [PATCH v3 01/12] MAINTAINERS: Add scripts/decodetree.py to the TCG section, Richard Henderson, 2019/03/07
- [Qemu-devel] [PATCH v3 02/12] decodetree: Move documentation to docs/devel/decodetree.rst, Richard Henderson, 2019/03/07
- [Qemu-devel] [PATCH v3 03/12] decodetree: Document the usefulness of argument sets, Richard Henderson, 2019/03/07
- [Qemu-devel] [PATCH v3 04/12] decodetree: Ensure build_tree does not include values outside insnmask,
Richard Henderson <=
- [Qemu-devel] [PATCH v3 05/12] decodetree: Do not unconditionaly return from Pattern.output_code, Richard Henderson, 2019/03/07
- [Qemu-devel] [PATCH v3 07/12] test/decode: Add tests for PatternGroups, Richard Henderson, 2019/03/07
- [Qemu-devel] [PATCH v3 06/12] decodetree: Allow grouping of overlapping patterns, Richard Henderson, 2019/03/07
- [Qemu-devel] [PATCH v3 08/12] decodetree: Add --static-decode option, Richard Henderson, 2019/03/07
- [Qemu-devel] [PATCH v3 09/12] decodetree: Produce clean output for an empty input file, Richard Henderson, 2019/03/07
- [Qemu-devel] [PATCH v3 11/12] decodetree: Prefix extract function names with decode_function, Richard Henderson, 2019/03/07
- [Qemu-devel] [PATCH v3 10/12] decodetree: Allow +- to begin a number initializing a field, Richard Henderson, 2019/03/07
- [Qemu-devel] [PATCH v3 12/12] decodetree: Properly diagnose fields overflowing an insn, Richard Henderson, 2019/03/07