From: Dmitry Selyutin Date: Tue, 19 Apr 2022 12:43:41 +0000 (+0000) Subject: selectable_int: allow range in FieldSelectableInt X-Git-Tag: sv_maxu_works-initial~498 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64304a7a03e0b483e385fcd07fdda4374336d5dd;p=openpower-isa.git selectable_int: allow range in FieldSelectableInt --- diff --git a/src/openpower/decoder/selectable_int.py b/src/openpower/decoder/selectable_int.py index 34ea0155..c5e48f9f 100644 --- a/src/openpower/decoder/selectable_int.py +++ b/src/openpower/decoder/selectable_int.py @@ -23,7 +23,7 @@ class FieldSelectableInt: def __init__(self, si, br): self.si = si # target selectable int - if isinstance(br, list) or isinstance(br, tuple): + if isinstance(br, (list, tuple, range)): _br = BitRange() for i, v in enumerate(br): _br[i] = v