summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2010-06-02 12:58:01 -0500
committerGabe Black <gblack@eecs.umich.edu>2010-06-02 12:58:01 -0500
commit3b0f3b1ee207176bf2c8a66ef6ed2945f95e28c7 (patch)
treef422bd6d03fe7a855d35d7e787057bc568cdf0a7 /src
parentfde3c8f41d08500e13d94227b52a642111043414 (diff)
downloadgem5-3b0f3b1ee207176bf2c8a66ef6ed2945f95e28c7.tar.xz
ARM: Add a .w to the disassembly of 32 bit thumb instructions.
This isn't technically correct since the .w should only be added if there are 32 and 16 bit encodings, but always having it always is better than never having it.
Diffstat (limited to 'src')
-rw-r--r--src/arch/arm/insts/static_inst.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/arm/insts/static_inst.cc b/src/arch/arm/insts/static_inst.cc
index d62c671fc..027980b3c 100644
--- a/src/arch/arm/insts/static_inst.cc
+++ b/src/arch/arm/insts/static_inst.cc
@@ -344,7 +344,10 @@ ArmStaticInstBase::printMnemonic(std::ostream &os,
default:
panic("Unrecognized condition code %d.\n", condCode);
}
- os << suffix << " ";
+ os << suffix;
+ if (machInst.bigThumb)
+ os << ".w";
+ os << " ";
}
}