From 64304a7a03e0b483e385fcd07fdda4374336d5dd Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 19 Apr 2022 12:43:41 +0000 Subject: [PATCH] selectable_int: allow range in FieldSelectableInt --- src/openpower/decoder/selectable_int.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2