36 using namespace PowerISA;
59 return (uint32_t)(pc.pc() +
disp);
105 return (uint32_t)(pc.pc() +
disp);
111 std::stringstream
ss;
115 ss <<
bo <<
", " <<
bi <<
", ";
120 if (symtab && symtab->
findSymbol(target, str))
138 std::stringstream
ss;
142 ss <<
bo <<
", " <<
bi <<
", ";
157 return regVal & 0xfffffffc;
164 std::stringstream
ss;
168 ss <<
bo <<
", " <<
bi <<
", ";
void ccprintf(cp::Print &print)
uint32_t bo
Fields needed for conditions.
PowerISA::PCState branchTarget(const PowerISA::PCState &pc) const
std::string * cachedDisassembly
String representation of disassembly (lazily evaluated via disassemble()).
int8_t _numSrcRegs
See numSrcRegs().
const std::string & disassemble(Addr pc, const SymbolTable *symtab) const
Return string representation of disassembled instruction.
std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const
Internal function to generate disassembly string.
const char * mnemonic
Base mnemonic (e.g., "add").
PowerISA::PCState branchTarget(ThreadContext *tc) const
Return the target address for an indirect branch (jump).
ThreadContext is the external interface to all thread state for anything outside of the CPU...
const SymbolTable * cachedSymtab
Cached symbol table pointer from last disassembly.
virtual uint64_t readIntReg(int reg_idx)=0
uint32_t disp
Displacement.
RegIndex _srcRegIdx[MaxInstSrcRegs]
See srcRegIdx().
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const
Internal function to generate disassembly string.
std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const
Internal function to generate disassembly string.
PowerISA::PCState branchTarget(const PowerISA::PCState &pc) const
std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const
Internal function to generate disassembly string.
PowerISA::PCState branchTarget(const PowerISA::PCState &pc) const
GenericISA::SimplePCState< MachInst > PCState
bool findSymbol(Addr address, std::string &symbol) const
Addr cachedPC
Cached program counter from last disassembly.
std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const
Internal function to generate disassembly string.
std::string generateDisassembly(Addr pc, const SymbolTable *symtab) const
Internal function to generate disassembly string.
uint32_t targetAddr
Target address.
uint32_t targetAddr
Target address.
uint32_t disp
Displacement.
PowerISA::PCState branchTarget(const PowerISA::PCState &pc) const