diff options
Diffstat (limited to 'src/arch/arm/insts/branch.cc')
-rw-r--r-- | src/arch/arm/insts/branch.cc | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/arch/arm/insts/branch.cc b/src/arch/arm/insts/branch.cc index 5e08b069d..87a89cc4f 100644 --- a/src/arch/arm/insts/branch.cc +++ b/src/arch/arm/insts/branch.cc @@ -32,54 +32,4 @@ namespace ArmISA { -Addr -Branch::branchTarget(Addr branchPC) const -{ - return branchPC + 8 + disp; -} - -const std::string & -PCDependentDisassembly::disassemble(Addr pc, - const SymbolTable *symtab) const -{ - if (!cachedDisassembly || - pc != cachedPC || symtab != cachedSymtab) - { - if (cachedDisassembly) - delete cachedDisassembly; - - cachedDisassembly = - new std::string(generateDisassembly(pc, symtab)); - cachedPC = pc; - cachedSymtab = symtab; - } - - return *cachedDisassembly; -} - -std::string -Branch::generateDisassembly(Addr pc, const SymbolTable *symtab) const -{ - std::stringstream ss; - - printMnemonic(ss); - ss << "\t"; - - Addr target = pc + 8 + disp; - ccprintf(ss, "%#x", target); - printMemSymbol(ss, symtab, " <", target, ">"); - - return ss.str(); -} - -std::string -BranchExchange::generateDisassembly(Addr pc, const SymbolTable *symtab) const -{ - std::stringstream ss; - printMnemonic(ss); - if (_numSrcRegs > 0) { - printReg(ss, _srcRegIdx[0]); - } - return ss.str(); -} } |