arch-power: Fix compare instructions
authorSandipan Das <sandipan@linux.ibm.com>
Sat, 6 Feb 2021 11:49:40 +0000 (17:19 +0530)
committerSandipan Das <sandipan@linux.ibm.com>
Mon, 15 Feb 2021 08:32:38 +0000 (14:02 +0530)
commit062c52bae2fc1b97601d0d8b55492ece4b24ccef
treecb91c21f0c7fca66285177977b195a1cd66ba3b3
parent4be397f2fe7740839f8e226c57888238d1e16d59
arch-power: Fix compare instructions

Now that 64-bit registers are being used, instead of always
performing a 32-bit comparison, these instructions must use
the L field to determine the type of comparison to be made.
The comparison can either be 32-bit or 64-bit. This fixes
the following instructions.
  * Compare (cmp)
  * Compare Logical (cmpl)
  * Compare Immediate (cmpi)
  * Compare Logical Immediate (cmpli)

Change-Id: Ia7655ffa463214c24e094e01d4188decf6486904
Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
src/arch/power/isa/decoder.isa