From 754d606262413f8bd880c025893542f3c7a2563d Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Mon, 21 Nov 2022 20:35:24 +0300 Subject: [PATCH] power_insn: support sl 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 c5c3b51d..2fd14eeb 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -2952,6 +2952,17 @@ class SpecifierSNZ(SpecifierBranch): rm.SNZ = 1 +@_dataclasses.dataclass(eq=True, frozen=True) +class SpecifierSL(SpecifierBranch): + @classmethod + def match(cls, desc, record): + return super().match(desc=desc, record=record, etalon="sl") + + def assemble(self, insn): + rm = insn.prefix.rm.select(record=self.record) + rm.SL = 1 + + class Specifiers(tuple): SPECS = ( SpecifierW, @@ -2974,6 +2985,7 @@ class Specifiers(tuple): SpecifierCRM, SpecifierAll, SpecifierSNZ, + SpecifierSL, ) def __new__(cls, items, record): -- 2.30.2