From: Dmitry Selyutin Date: Tue, 6 Sep 2022 18:26:03 +0000 (+0300) Subject: power_insn: use tuple for bit ranges in fields X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee92239b768535d5efd8901a3cb427214c94e50d;p=openpower-isa.git power_insn: use tuple for bit ranges in fields --- diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 2ecc2aa8..e596174d 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -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))