From 1ea14b8fac34764a219407effba3211e3f8edc90 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 27 Jun 2009 00:30:23 -0700 Subject: ARM: Show more information when disassembling data processing intstructions. This will need more work, but it should be a lot closer. --- src/arch/arm/insts/pred_inst.cc | 55 +---------------------------------------- 1 file changed, 1 insertion(+), 54 deletions(-) (limited to 'src/arch/arm/insts/pred_inst.cc') 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(); } -- cgit v1.2.3