diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2010-06-02 12:58:01 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2010-06-02 12:58:01 -0500 |
commit | 3b0f3b1ee207176bf2c8a66ef6ed2945f95e28c7 (patch) | |
tree | f422bd6d03fe7a855d35d7e787057bc568cdf0a7 | |
parent | fde3c8f41d08500e13d94227b52a642111043414 (diff) | |
download | gem5-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.
-rw-r--r-- | src/arch/arm/insts/static_inst.cc | 5 |
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 << " "; } } |