diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-06-27 00:30:23 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-06-27 00:30:23 -0700 |
commit | 1ea14b8fac34764a219407effba3211e3f8edc90 (patch) | |
tree | cd10943dd662c116825242887310aa3424086425 /src/arch/arm/insts/pred_inst.cc | |
parent | 56f1845471231f6b063a912c79c38e63cfbd7d59 (diff) | |
download | gem5-1ea14b8fac34764a219407effba3211e3f8edc90.tar.xz |
ARM: Show more information when disassembling data processing intstructions.
This will need more work, but it should be a lot closer.
Diffstat (limited to 'src/arch/arm/insts/pred_inst.cc')
-rw-r--r-- | src/arch/arm/insts/pred_inst.cc | 55 |
1 files changed, 1 insertions, 54 deletions
diff --git a/src/arch/arm/insts/pred_inst.cc b/src/arch/arm/insts/pred_inst.cc index 7fd891b19..539cfc2d2 100644 --- a/src/arch/arm/insts/pred_inst.cc +++ b/src/arch/arm/insts/pred_inst.cc @@ -35,60 +35,7 @@ std::string PredOp::generateDisassembly(Addr pc, const SymbolTable *symtab) const { std::stringstream ss; - printMnemonic(ss); - if (_numDestRegs > 0) { - printReg(ss, _destRegIdx[0]); - } - - ss << ", "; - - if (_numSrcRegs > 0) { - printReg(ss, _srcRegIdx[0]); - ss << ", "; - } - - return ss.str(); -} - -std::string -PredImmOp::generateDisassembly(Addr pc, const SymbolTable *symtab) const -{ - std::stringstream ss; - - ccprintf(ss, "%-10s ", mnemonic); - - if (_numDestRegs > 0) { - printReg(ss, _destRegIdx[0]); - } - - ss << ", "; - - if (_numSrcRegs > 0) { - printReg(ss, _srcRegIdx[0]); - ss << ", "; - } - - return ss.str(); -} - -std::string -PredIntOp::generateDisassembly(Addr pc, const SymbolTable *symtab) const -{ - std::stringstream ss; - - ccprintf(ss, "%-10s ", mnemonic); - - if (_numDestRegs > 0) { - printReg(ss, _destRegIdx[0]); - } - - ss << ", "; - - if (_numSrcRegs > 0) { - printReg(ss, _srcRegIdx[0]); - ss << ", "; - } - + printDataInst(ss); return ss.str(); } |