From fe21d33bf2c865bf2819bb143dd481f7a6552cc0 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Mon, 21 Nov 2022 20:36:29 +0300 Subject: [PATCH] power_insn: support slu specifier --- src/openpower/decoder/power_insn.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 2fd14eeb..ea8dc5c4 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -2963,6 +2963,17 @@ class SpecifierSL(SpecifierBranch): rm.SL = 1 +@_dataclasses.dataclass(eq=True, frozen=True) +class SpecifierSLu(SpecifierBranch): + @classmethod + def match(cls, desc, record): + return super().match(desc=desc, record=record, etalon="slu") + + def assemble(self, insn): + rm = insn.prefix.rm.select(record=self.record) + rm.SLu = 1 + + class Specifiers(tuple): SPECS = ( SpecifierW, @@ -2986,6 +2997,7 @@ class Specifiers(tuple): SpecifierAll, SpecifierSNZ, SpecifierSL, + SpecifierSLu, ) def __new__(cls, items, record): -- 2.30.2