38 #ifndef __ARCH_X86_INSTS_MICROREGOP_HH__ 39 #define __ARCH_X86_INSTS_MICROREGOP_HH__ 59 const char *mnem,
const char *_instMnem, uint64_t setFlags,
61 uint8_t _dataSize, uint16_t _ext,
66 dataSize(_dataSize), ext(_ext)
68 foldOBit = (dataSize == 1 && !_machInst.rex.present) ? 1 << 6 : 0;
72 uint64_t
genFlags(uint64_t oldFlags, uint64_t flagMask,
73 uint64_t _dest, uint64_t _src1, uint64_t _src2,
74 bool subtract =
false)
const;
84 const char *mnem,
const char *_instMnem, uint64_t setFlags,
86 uint8_t _dataSize, uint16_t _ext,
88 RegOpBase(_machInst, mnem, _instMnem, setFlags,
89 _src1, _dest, _dataSize, _ext,
106 const char * mnem,
const char *_instMnem, uint64_t setFlags,
108 uint8_t _dataSize, uint16_t _ext,
110 RegOpBase(_machInst, mnem, _instMnem, setFlags,
111 _src1, _dest, _dataSize, _ext,
122 #endif //__ARCH_X86_INSTS_MICROREGOP_HH__
Class for register indices passed to instruction constructors.
Base classes for RegOps which provides a generateDisassembly method.
uint64_t genFlags(uint64_t oldFlags, uint64_t flagMask, uint64_t _dest, uint64_t _src1, uint64_t _src2, bool subtract=false) const
RegOp(ExtMachInst _machInst, const char *mnem, const char *_instMnem, uint64_t setFlags, InstRegIndex _src1, InstRegIndex _src2, InstRegIndex _dest, uint8_t _dataSize, uint16_t _ext, OpClass __opClass)
RegOpImm(ExtMachInst _machInst, const char *mnem, const char *_instMnem, uint64_t setFlags, InstRegIndex _src1, uint8_t _imm8, InstRegIndex _dest, uint8_t _dataSize, uint16_t _ext, OpClass __opClass)
RegOpBase(ExtMachInst _machInst, const char *mnem, const char *_instMnem, uint64_t setFlags, InstRegIndex _src1, InstRegIndex _dest, uint8_t _dataSize, uint16_t _ext, OpClass __opClass)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
std::string generateDisassembly(Addr pc, const Loader::SymbolTable *symtab) const
Internal function to generate disassembly string.
This is exposed globally, independent of the ISA.
TheISA::ExtMachInst ExtMachInst
Binary extended machine instruction type.