40 #ifndef __ARCH_X86_INSTS_STATICINST_HH__
41 #define __ARCH_X86_INSTS_STATICINST_HH__
45 #include "debug/X86.hh"
87 void printMem(std::ostream &
os, uint8_t segment,
89 uint64_t disp, uint8_t addressSize,
bool rip)
const;
116 panic(
"Tried to merge with unrecognized size %d.\n", size);
121 inline uint64_t
pick(uint64_t from,
int idx,
int size)
const
123 X86IntReg
reg = from;
124 DPRINTF(X86,
"Picking with size %d\n", size);
138 panic(
"Tried to pick with unrecognized size %d.\n", size);
144 X86IntReg
reg = from;
145 DPRINTF(X86,
"Picking with size %d\n", size);
159 panic(
"Tried to pick with unrecognized size %d.\n", size);
171 #endif //__ARCH_X86_INSTS_STATICINST_HH__
void printMem(std::ostream &os, uint8_t segment, uint8_t scale, RegIndex index, RegIndex base, uint64_t disp, uint8_t addressSize, bool rip) const
uint64_t merge(uint64_t into, uint64_t val, int size) const
Class for register indices passed to instruction constructors.
int64_t signedPick(uint64_t from, int idx, int size) const
const char * mnemonic
Base mnemonic (e.g., "add").
void printMnemonic(std::ostream &os, const char *mnemonic) const
X86StaticInst(const char *mnem, ExtMachInst _machInst, OpClass __opClass)
std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const
Internal function to generate disassembly string.
RegIndex _srcRegIdx[MaxInstSrcRegs]
See srcRegIdx().
void printSegment(std::ostream &os, int segment) const
Base class for all X86 static instructions.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
uint64_t pick(uint64_t from, int idx, int size) const
void printDestReg(std::ostream &os, int reg, int size) const
void advancePC(PCState &pcState) const
static const IntRegIndex IntFoldBit
InstRegIndex(RegIndex _idx)
void printReg(std::ostream &os, int reg, int size) const
Base, ISA-independent static instruction class.
TheISA::ExtMachInst ExtMachInst
Binary extended machine instruction type.
void printSrcReg(std::ostream &os, int reg, int size) const
RegIndex _destRegIdx[MaxInstDestRegs]
See destRegIdx().