From 33db56e784bcb91620c7582f151b91d3e9dbf1d0 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Thu, 18 Apr 2024 07:56:28 +0200 Subject: [PATCH] isaspec: Improve 'meta' handling As a meta line could become quite long, make it possible to have multiple meta tags. Signed-off-by: Christian Gmeiner Acked-by: Rob Clark Part-of: --- src/compiler/isaspec/isa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/isaspec/isa.py b/src/compiler/isaspec/isa.py index 3320be76a28..2ef1ec1fa83 100644 --- a/src/compiler/isaspec/isa.py +++ b/src/compiler/isaspec/isa.py @@ -288,8 +288,8 @@ class BitSet(object): if 'max' in gen.attrib: self.gen_max = int(gen.attrib['max']) - if xml.find('meta') is not None: - self.meta = xml.find('meta').attrib + for meta in xml.findall('meta'): + self.meta.update(meta.attrib) # Collect up the match/dontcare/mask bitmasks for # this bitset case: