decodetree: Fix recursion in prop_format and build_tree
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 26 May 2023 01:45:43 +0000 (18:45 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 30 May 2023 17:55:39 +0000 (10:55 -0700)
Two copy-paste errors walking the parse tree.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
scripts/decodetree.py

index 3f9f6876f74c76beaee69b14497eb75bb69638f3..e2640cc79b9b6fe2a04099c4e2ab1745de5c2dd6 100644 (file)
@@ -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)