power_insn: use tuple for bit ranges in fields
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 6 Sep 2022 18:26:03 +0000 (21:26 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 6 Sep 2022 19:53:05 +0000 (22:53 +0300)
src/openpower/decoder/power_insn.py

index 2ecc2aa8aa2f6ff4f22168c407a795d3ea8b2af5..e596174df7931b0e46da0080e071e4113b6ff377 100644 (file)
@@ -482,7 +482,7 @@ class Fields:
 
         def transform(item):
             (name, bitrange) = item
-            return (name, list(bitrange.values()))
+            return (name, tuple(bitrange.values()))
 
         self.__mapping = dict(map(transform, items))