From bfd616b0d33add9c423e1572fa331064bfb050db Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 11 May 2023 23:38:09 -0700 Subject: [PATCH] allow assigning BFPState and SelectableMSB0Fraction values in pseudo-code --- src/openpower/decoder/helpers.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/openpower/decoder/helpers.py b/src/openpower/decoder/helpers.py index a7d8a37d..6d4c6d9a 100644 --- a/src/openpower/decoder/helpers.py +++ b/src/openpower/decoder/helpers.py @@ -10,6 +10,8 @@ from openpower.decoder.selectable_int import selectltu as ltu from openpower.decoder.selectable_int import selectgtu as gtu from openpower.decoder.selectable_int import check_extsign from openpower.fpscr import FPSCRState +from openpower.decoder.fp_working_format import ( + BFPState, SelectableMSB0Fraction) from openpower.util import log import math @@ -87,6 +89,10 @@ def copy_assign_rhs(inp): return inp if isinstance(inp, (SelectableInt, FieldSelectableInt)): return SelectableInt(inp) + if isinstance(inp, BFPState): + return BFPState(inp) + if isinstance(inp, SelectableMSB0Fraction): + return SelectableMSB0Fraction(inp) if isinstance(inp, tuple): return tuple(map(copy_assign_rhs, inp)) if isinstance(inp, dict): -- 2.30.2