-instruction_info = namedtuple('instruction_info',
- 'func read_regs uninit_regs write_regs ' +
- 'special_regs op_fields form asmregs')
-
-special_sprs = {
- 'LR': 8,
- 'CTR': 9,
- 'TAR': 815,
- 'XER': 1,
- 'VRSAVE': 256}
-
-
-def swap_order(x, nbytes):
- x = x.to_bytes(nbytes, byteorder='little')
- x = int.from_bytes(x, byteorder='big', signed=False)
- return x
-
-
-REG_SORT_ORDER = {
- # TODO (lkcl): adjust other registers that should be in a particular order
- # probably CA, CA32, and CR
- "RT": 0,
- "RA": 0,
- "RB": 0,
- "RS": 0,
- "CR": 0,
- "LR": 0,
- "CTR": 0,
- "TAR": 0,
- "CA": 0,
- "CA32": 0,
- "MSR": 0,
-
- "overflow": 1,
-}
-
-