summary refs log tree commit diff stats
path: root/scripts/decodetree.py
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-05-25 18:45:43 -0700
committerRichard Henderson <richard.henderson@linaro.org>2023-05-30 10:55:39 -0700
commit2fd2eb5a247e641adc36a67318a791b417afea46 (patch)
tree80040b566047586937f314b3d61af7d737b87193 /scripts/decodetree.py
parent9b5acc563367149c27bc7a4b464f98bf06eeb59a (diff)
downloadfocaccia-qemu-2fd2eb5a247e641adc36a67318a791b417afea46.tar.gz
focaccia-qemu-2fd2eb5a247e641adc36a67318a791b417afea46.zip
decodetree: Fix recursion in prop_format and build_tree
Two copy-paste errors walking the parse tree.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts/decodetree.py')
-rw-r--r--scripts/decodetree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/decodetree.py b/scripts/decodetree.py
index 3f9f6876f7..e2640cc79b 100644
--- a/scripts/decodetree.py
+++ b/scripts/decodetree.py
@@ -474,7 +474,7 @@ class MultiPattern(General):
 
     def prop_format(self):
         for p in self.pats:
-            p.build_tree()
+            p.prop_format()
 
     def prop_width(self):
         width = None
@@ -624,7 +624,7 @@ class ExcMultiPattern(MultiPattern):
         return t
 
     def build_tree(self):
-        super().prop_format()
+        super().build_tree()
         self.tree = self.__build_tree(self.pats, self.fixedbits,
                                       self.fixedmask)