From: Dmitry Selyutin Date: Wed, 10 May 2023 17:49:34 +0000 (+0000) Subject: power_insn: introduce byteorder class X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e9a4631c78e7b48da1f3eae3ba6301f3c0d9e0a2;p=openpower-isa.git power_insn: introduce byteorder class --- 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()