ARM: Add a .w to the disassembly of 32 bit thumb instructions.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:01 +0000 (12:58 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:01 +0000 (12:58 -0500)
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.

src/arch/arm/insts/static_inst.cc

index d62c671fcedf80f619bab5706486a1adc48803ed..027980b3c790f5f78b2e990848875afcdeaf110c 100644 (file)
@@ -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 << "   ";
     }
 }