Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rth7680 committed May 30, 2023
1 parent 9b5acc5 commit 2fd2eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/decodetree.py
Expand Up @@ -474,7 +474,7 @@ def build_tree(self):

def prop_format(self):
for p in self.pats:
p.build_tree()
p.prop_format()

def prop_width(self):
width = None
Expand Down Expand Up @@ -624,7 +624,7 @@ def __build_tree(pats, outerbits, outermask):
return t

def build_tree(self):
super().prop_format()
super().build_tree()
self.tree = self.__build_tree(self.pats, self.fixedbits,
self.fixedmask)

Expand Down

0 comments on commit 2fd2eb5

Please sign in to comment.