From e9a4631c78e7b48da1f3eae3ba6301f3c0d9e0a2 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 10 May 2023 17:49:34 +0000 Subject: [PATCH] power_insn: introduce byteorder class --- src/openpower/decoder/power_insn.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index f8188eda..1efa16e7 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -55,6 +55,14 @@ from openpower.decoder.power_fields import ( from openpower.decoder.pseudo.pagereader import ISA as _ISA +class ByteOrder(_enum.Enum): + LITTLE = "little" + BIG = "big" + + def __str__(self): + return self.name.lower() + + @_functools.total_ordering class Style(_enum.Enum): LEGACY = _enum.auto() -- 2.30.2