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)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 24 Jan 2021 03:26:16 +0000 (03:26 +0000)
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 44fc3c3abaa669be8cb76b76136aa86529870688..0430f30dcc4e6abfe13291a371921fc2b6ed7e9c 100644 (file)
@@ -44,6 +44,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 db03781fbc6e0310019a2d0a7cbbce78e022f5dc..2c8d7de9aa3c998fda38e360c8b4b76ebadcb2e1 100644 (file)
@@ -46,6 +46,7 @@ BitUnion32(ExtMachInst)
 
     // Shifts and masks
     Bitfield<15, 11> sh;
+    Bitfield<1>      shn;
     Bitfield<10,  6> mb;
     Bitfield< 5,  1> me;