find_wiki_dir as _find_wiki_dir,
)
from openpower.decoder.power_insn import (
+ ByteOrder as _ByteOrder,
Style as _Style,
Database as _Database,
WordInstruction as _WordInstruction,
)
-class ByteOrder(_enum.Enum):
- LITTLE = "little"
- BIG = "big"
-
- def __str__(self):
- return self.name.lower()
-
-
-def load(ifile, byteorder=ByteOrder.LITTLE, **_):
- byteorder = str(byteorder)
-
+def load(ifile, byteorder=_ByteOrder.LITTLE, **_):
while True:
insn = ifile.read(4)
length = len(insn)
parser.add_argument("ofile", nargs="?",
type=_argparse.FileType("w"), default=_sys.stdout)
parser.add_argument("-b", "--byteorder",
- type=ByteOrder, default=ByteOrder.LITTLE)
+ type=_ByteOrder, default=_ByteOrder.LITTLE)
parser.add_argument("-s", "--short",
dest="style", default=_Style.NORMAL,
action="store_const", const=_Style.SHORT)