arch-power: Add fields for D and X form instructions
authorSandipan Das <sandipan@linux.ibm.com>
Sat, 6 Feb 2021 11:49:32 +0000 (17:19 +0530)
committerSandipan Das <sandipan@linux.ibm.com>
Mon, 15 Feb 2021 08:32:38 +0000 (14:02 +0530)
This adds the L field for D and X form instructions that
specifies if a compare instruction should perform 32-bit
or 64-bit comparison of its operands.

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

index ef9b35fd8dfcef3eb72094edbe5db02d5b34ecb4..4ce18649499bb9e6cbdefa599a9e1be4caa6b7da 100644 (file)
@@ -51,12 +51,16 @@ BitUnion32(ExtMachInst)
 
     // Immediate fields
     Bitfield<15,  0> si;
+    Bitfield<15,  0> ui;
     Bitfield<15,  0> d;
     Bitfield<15,  2> ds;
     Bitfield<15,  6> d0;
     Bitfield<20, 16> d1;
     Bitfield< 1,  0> d2;
 
+    // Compare fields
+    Bitfield<21>     l;
+
     // Special purpose register identifier
     Bitfield<20, 11> spr;
     Bitfield<25, 23> bf;