Skip to content

Commit 7929d38

Browse files
committed
arch-arm: Remove space in disassembly of DC instructions
The argument to a DC op is stored in the SysDC64 mnemonic. Hower printMnemonic prints it out with trailing whitespace, leading to disassembly like "DC IVAC , X0". Output mnemonic directly to avoid this. Change-Id: I7901b5c2953638ece45f78cbdf7df5443db473b7
1 parent ac750cf commit 7929d38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/arch/arm/insts/mem64.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ std::string
5151
SysDC64::generateDisassembly(Addr pc, const loader::SymbolTable *symtab) const
5252
{
5353
std::stringstream ss;
54-
printMnemonic(ss, "", false);
55-
ccprintf(ss, ", ");
54+
ss << " " << mnemonic << ", ";
5655
printIntReg(ss, base);
5756
return ss.str();
5857
}

0 commit comments

Comments
 (0)