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>
This commit is contained in:
parent
9b5acc5633
commit
2fd2eb5a24
@ -474,7 +474,7 @@ class MultiPattern(General):
|
|||||||
|
|
||||||
def prop_format(self):
|
def prop_format(self):
|
||||||
for p in self.pats:
|
for p in self.pats:
|
||||||
p.build_tree()
|
p.prop_format()
|
||||||
|
|
||||||
def prop_width(self):
|
def prop_width(self):
|
||||||
width = None
|
width = None
|
||||||
@ -624,7 +624,7 @@ class ExcMultiPattern(MultiPattern):
|
|||||||
return t
|
return t
|
||||||
|
|
||||||
def build_tree(self):
|
def build_tree(self):
|
||||||
super().prop_format()
|
super().build_tree()
|
||||||
self.tree = self.__build_tree(self.pats, self.fixedbits,
|
self.tree = self.__build_tree(self.pats, self.fixedbits,
|
||||||
self.fixedmask)
|
self.fixedmask)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user