Go to the documentation of this file.
47 const char * mnemonic)
const
53 const char * instMnemonic,
const char * mnemonic)
const
102 panic(
"Unrecognized segment %d\n", segment);
123 assert(size == 1 || size == 2 || size == 4 || size == 8);
124 static const char * abcdFormats[9] =
125 {
"",
"%s",
"%sx",
"",
"e%sx",
"",
"",
"",
"r%sx"};
126 static const char * piFormats[9] =
127 {
"",
"%s",
"%s",
"",
"e%s",
"",
"",
"",
"r%s"};
128 static const char * longFormats[9] =
129 {
"",
"r%sb",
"r%sw",
"",
"r%sd",
"",
"",
"",
"r%s"};
130 static const char * microFormats[9] =
131 {
"",
"t%db",
"t%dw",
"",
"t%dd",
"",
"",
"",
"t%d"};
135 if (
reg.isIntReg()) {
136 const char * suffix =
"";
142 else if (reg_idx < 8 && size == 1)
199 }
else if (
reg.isFloatReg()) {
207 (reg_idx % 2) ?
"high":
"low");
218 }
else if (
reg.isCCReg()) {
221 }
else if (
reg.isMiscReg()) {
231 uint64_t disp, uint8_t addressSize,
bool rip)
const
233 bool someAddr =
false;
271 std::stringstream
ss;
static const IntRegIndex IntFoldBit
void printDestReg(std::ostream &os, int reg, int size) const
void printReg(std::ostream &os, RegId reg, int size) const
Register ID: describe an architectural register with its class and index.
Class for register indices passed to instruction constructors.
RegId _srcRegIdx[MaxInstSrcRegs]
See srcRegIdx().
RegId _destRegIdx[MaxInstDestRegs]
See destRegIdx().
void printSegment(std::ostream &os, int segment) const
void printMnemonic(std::ostream &os, const char *mnemonic) const
void printMem(std::ostream &os, uint8_t segment, uint8_t scale, RegIndex index, RegIndex base, uint64_t disp, uint8_t addressSize, bool rip) const
const char * mnemonic
Base mnemonic (e.g., "add").
std::string generateDisassembly(Addr pc, const Loader::SymbolTable *symtab) const override
Internal function to generate disassembly string.
This is exposed globally, independent of the ISA.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
void printSrcReg(std::ostream &os, int reg, int size) const
void ccprintf(cp::Print &print)
int8_t _numSrcRegs
See numSrcRegs().
int8_t _numDestRegs
See numDestRegs().
#define panic(...)
This implements a cprintf based panic() function.
Generated on Wed Sep 30 2020 14:02:00 for gem5 by doxygen 1.8.17