ARM: Add thumb bitfields to the ExtMachInst and the isa definition.

This commit is contained in:
Gabe Black
2010-06-02 12:58:00 -05:00
parent a1838f2c79
commit aaa619ea23
2 changed files with 31 additions and 0 deletions

View 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;

View 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