Go to the documentation of this file.
37 bool printDest =
true;
38 bool printSrcs =
true;
39 bool printSecondSrc =
true;
47 printSecondSrc =
false;
48 }
else if (!myMnemonic.compare(
"mtlr") || !myMnemonic.compare(
"cmpi")) {
50 }
else if (!myMnemonic.compare(
"mflr")) {
55 if (
oeSet) myMnemonic = myMnemonic +
"o";
56 if (
rcSet) myMnemonic = myMnemonic +
".";
89 if (!myMnemonic.compare(
"addi") &&
_numSrcRegs == 0) {
91 }
else if (!myMnemonic.compare(
"addis") &&
_numSrcRegs == 0) {
110 ss <<
", " << (int32_t)
imm;
120 std::stringstream
ss;
148 std::stringstream
ss;
166 ss <<
", " <<
sh <<
", " <<
mb <<
", " <<
me;
std::string generateDisassembly(Addr pc, const Loader::SymbolTable *symtab) const override
Internal function to generate disassembly string.
const RegId & destRegIdx(int i) const
Return logical index (architectural reg num) of i'th destination reg.
std::string generateDisassembly(Addr pc, const Loader::SymbolTable *symtab) const override
Internal function to generate disassembly string.
void printReg(std::ostream &os, RegId reg) const
Print a register name for disassembly given the unique dependence tag number (FP or int).
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.
const RegId & srcRegIdx(int i) const
Return logical index (architectural reg num) of i'th source reg.
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 override
Internal function to generate disassembly string.
void ccprintf(cp::Print &print)
int8_t _numSrcRegs
See numSrcRegs().
int8_t _numDestRegs
See numDestRegs().
Generated on Tue Jun 22 2021 15:28:24 for gem5 by doxygen 1.8.17