From 5f96648e128482f67551740dfdd66f55a75c0e79 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 17 Aug 2022 13:40:32 +0300 Subject: [PATCH] pysvp64dis: introduce Suffix helper class --- src/openpower/sv/trans/pysvp64dis.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/openpower/sv/trans/pysvp64dis.py b/src/openpower/sv/trans/pysvp64dis.py index 2e63b7d2..c2218d0a 100644 --- a/src/openpower/sv/trans/pysvp64dis.py +++ b/src/openpower/sv/trans/pysvp64dis.py @@ -85,6 +85,9 @@ class SVP64Instruction(PrefixedInstruction): def rm(self): return self.__class__.RM(super().rm) + class Suffix(Instruction): + pass + def __init__(self, prefix, suffix, byteorder=ByteOrder.LITTLE): if SVP64Instruction.Prefix(prefix).pid != 0b11: raise SVP64Instruction.PrefixError(prefix) @@ -97,6 +100,10 @@ class SVP64Instruction(PrefixedInstruction): def prefix(self): return self.__class__.Prefix(super().prefix) + @cached_property + def suffix(self): + return self.__class__.Suffix(super().suffix) + def load(ifile, byteorder, **_): def load(ifile): -- 2.30.2