mem.cc (7118:444a3e126366) | mem.cc (7131:ab3a70a37ca8) |
---|---|
1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 53 unchanged lines hidden (view full) --- 62 } 63 } else { 64 os << "] "; 65 printOffset(os); 66 67 } 68} 69 | 1/* 2 * Copyright (c) 2010 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 53 unchanged lines hidden (view full) --- 62 } 63 } else { 64 os << "] "; 65 printOffset(os); 66 67 } 68} 69 |
70std::string 71Memory::generateDisassembly(Addr pc, const SymbolTable *symtab) const 72{ 73 std::stringstream ss; 74 printMnemonic(ss); 75 printReg(ss, machInst.rd); 76 ss << ", ["; 77 printReg(ss, machInst.rn); 78 ss << ", "; 79 if (machInst.puswl.prepost == 1) 80 printOffset(ss); 81 ss << "]"; 82 if (machInst.puswl.prepost == 0) 83 printOffset(ss); 84 else if (machInst.puswl.writeback) 85 ss << "!"; 86 return ss.str(); | |
87} | 70} |
88 89} | |