arch-power: Fix extended opcode based decoding
authorSandipan Das <sandipan@linux.ibm.com>
Sat, 6 Feb 2021 11:46:35 +0000 (17:16 +0530)
committerSandipan Das <sandipan@linux.ibm.com>
Mon, 15 Feb 2021 08:32:37 +0000 (14:02 +0530)
commit59f60dec9a12bd1ef059777e9156d5c2ba7ae957
tree4741ceb45da5e021d3355c58b2359988dabf9b16
parent6834a871cfc8eeeb98670006d4068764c2bb1eaa
arch-power: Fix extended opcode based decoding

When multiple instructions share the same primary opcode,
they are distinguished by the decoder by looking at the
extended opcode. However, the length and position of the
extended opcode field can vary based on instruction form.

This ensures that the correct extended opcode fields are
used for decoding such instructions.

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