summaryrefslogtreecommitdiff
path: root/src/arch/arm/insts/mem.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-06-27 00:29:12 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-06-27 00:29:12 -0700
commita4ac3fad7a9a6c48fdde3d42e35b113bbd03eacf (patch)
tree283ed5b25e52462c1d0988cba6b26020c2107e40 /src/arch/arm/insts/mem.cc
parent38d8bc64baab5ef17958d84e9d5fe6d62c31fca3 (diff)
downloadgem5-a4ac3fad7a9a6c48fdde3d42e35b113bbd03eacf.tar.xz
ARM: Write a function for printing mnemonics and predicates.
Diffstat (limited to 'src/arch/arm/insts/mem.cc')
-rw-r--r--src/arch/arm/insts/mem.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/arch/arm/insts/mem.cc b/src/arch/arm/insts/mem.cc
index e5e91a9ea..7909330aa 100644
--- a/src/arch/arm/insts/mem.cc
+++ b/src/arch/arm/insts/mem.cc
@@ -35,12 +35,16 @@ namespace ArmISA
std::string
Memory::generateDisassembly(Addr pc, const SymbolTable *symtab) const
{
- return csprintf("%-10s", mnemonic);
+ std::stringstream ss;
+ printMnemonic(ss);
+ return ss.str();
}
std::string
MemoryNoDisp::generateDisassembly(Addr pc, const SymbolTable *symtab) const
{
- return csprintf("%-10s", mnemonic);
+ std::stringstream ss;
+ printMnemonic(ss);
+ return ss.str();
}
}