ARM: Add thumb bitfields to the ExtMachInst and the isa definition.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:00 +0000 (12:58 -0500)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 2 Jun 2010 17:58:00 +0000 (12:58 -0500)
src/arch/arm/isa/bitfields.isa
src/arch/arm/types.hh

index 74e8e6e506231b1096ee39d46cca44663fbd3f6f..c0b64e45246b7e3a75e95ad8e94adaf521d598f7 100644 (file)
@@ -114,3 +114,18 @@ def bitfield PUNWL    punwl;
 // M5 instructions
 def bitfield M5FUNC        m5Func;
 
+// Thumb bitfields
+def bitfield TOPCODE_15_13  topcode15_13;
+def bitfield TOPCODE_13_11  topcode13_11;
+def bitfield TOPCODE_12_11  topcode12_11;
+def bitfield TOPCODE_12_10  topcode12_10;
+def bitfield TOPCODE_11_9   topcode11_9;
+def bitfield TOPCODE_11_8   topcode11_8;
+def bitfield TOPCODE_10_9   topcode10_9;
+def bitfield TOPCODE_10_8   topcode10_8;
+def bitfield TOPCODE_9_6    topcode9_6;
+def bitfield TOPCODE_7      topcode7;
+def bitfield TOPCODE_7_6    topcode7_6;
+def bitfield TOPCODE_7_5    topcode7_5;
+def bitfield TOPCODE_7_4    topcode7_4;
+def bitfield TOPCODE_3_0    topcode3_0;
index adc90ba5d37090a6ec6dce67495ccbfdadeee7a0..b0251e8fad40699b4381ad279a381f08e87cae36 100644 (file)
@@ -125,6 +125,22 @@ namespace ArmISA
         Bitfield<24, 20> punwl;
 
         Bitfield<7,  0>  m5Func;
+
+        // 16 bit thumb bitfields
+        Bitfield<15, 13> topcode15_13;
+        Bitfield<13, 11> topcode13_11;
+        Bitfield<12, 11> topcode12_11;
+        Bitfield<12, 10> topcode12_10;
+        Bitfield<11, 9>  topcode11_9;
+        Bitfield<11, 8>  topcode11_8;
+        Bitfield<10, 9>  topcode10_9;
+        Bitfield<10, 8>  topcode10_8;
+        Bitfield<9,  6>  topcode9_6;
+        Bitfield<7>      topcode7;
+        Bitfield<7, 6>   topcode7_6;
+        Bitfield<7, 5>   topcode7_5;
+        Bitfield<7, 4>   topcode7_4;
+        Bitfield<3, 0>   topcode3_0;
     EndBitUnion(ExtMachInst)
 
     // Shift types for ARM instructions