arch-power: Add fields for XS form instructions
authorSandipan Das <sandipan@linux.vnet.ibm.com>
Thu, 7 Jun 2018 12:48:50 +0000 (18:18 +0530)
committerSandipan Das <sandipan@linux.vnet.ibm.com>
Thu, 7 Jun 2018 12:48:50 +0000 (18:18 +0530)
This introduces the extended opcode field and the field
sh for XS form instructions.

Change-Id: I8f7cb3a2fda33b5b0076ffe12ffebeb5ec1c33a6
Signed-off-by: Sandipan Das <sandipan@linux.vnet.ibm.com>
src/arch/power/isa/bitfields.isa
src/arch/power/types.hh

index d1aab2d4224b3ed38fee3a837c02c6049b16b581..2719dc1c42aea7e2731c125a7dd9bfdcd73809c9 100644 (file)
@@ -46,6 +46,7 @@ def bitfield XFL_XO        <10:1>;
 def bitfield XFX_XO        <10:1>;
 def bitfield XL_XO         <10:1>;
 def bitfield XO_XO         <9:1>;
+def bitfield XS_XO         <10:2>;
 
 // Register fields
 def bitfield RA            <20:16>;
index b0edce81c63baae728236c24ee4831917d204618..afbc88d992a45c65d4ca83c1769be6bbe1bafc3b 100644 (file)
@@ -48,6 +48,7 @@ BitUnion32(ExtMachInst)
 
     // Shifts and masks
     Bitfield<15, 11> sh;
+    Bitfield<1>      shn;
     Bitfield<10,  6> mb;
     Bitfield< 5,  1> me;