aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Fedotov <alfedotov@gmail.com>2017-08-21 15:45:59 +0300
committerAlan Modra <amodra@gmail.com>2017-08-21 23:29:13 +0930
commite3c2f928b8f9afce6fdedaa1ddedfaa1d305aa9d (patch)
treef95567d041ed05d808ab6c3a7537c6035cfddbb8 /include
parentbf223d3e808e6fec9ee165d3d48beb74837796de (diff)
downloadgdb-e3c2f928b8f9afce6fdedaa1ddedfaa1d305aa9d.zip
gdb-e3c2f928b8f9afce6fdedaa1ddedfaa1d305aa9d.tar.gz
gdb-e3c2f928b8f9afce6fdedaa1ddedfaa1d305aa9d.tar.bz2
[PowerPC VLE] Add LSP (Lightweight Signal Processing) instruction support
include/ * opcode/ppc.h (PPC_OPCODE_LSP): New define. opcodes/ * ppc-opc.c (insert_evuimm2_ex0): New function. (extract_evuimm2_ex0): Likewise. (insert_evuimm4_ex0): Likewise. (extract_evuimm4_ex0): Likewise. (insert_evuimm8_ex0): Likewise. (extract_evuimm8_ex0): Likewise. (insert_evuimm_lt16): Likewise. (extract_evuimm_lt16): Likewise. (insert_rD_rS_even): Likewise. (extract_rD_rS_even): Likewise. (insert_off_lsp): Likewise. (extract_off_lsp): Likewise. (RD_EVEN): New operand. (RS_EVEN): Likewise. (RSQ): Adjust. (EVUIMM_LT16): New operand. (HTM_SI): Adjust. (EVUIMM_2_EX0): New operand. (EVUIMM_4): Adjust. (EVUIMM_4_EX0): New operand. (EVUIMM_8): Adjust. (EVUIMM_8_EX0): New operand. (WS): Adjust. (VX_OFF): New operand. (VX_LSP): New macro. (VX_LSP_MASK): Likewise. (VX_LSP_OFF_MASK): Likewise. (PPC_OPCODE_LSP): Likewise. (vle_opcodes): Add LSP opcodes. * ppc-dis.c (ppc_mopt): Add PPC_OPCODE_LSP flag to "vle" entry. gas/ * testsuite/gas/ppc/lsp-checks.d, * testsuite/gas/ppc/lsp-checks.l, * testsuite/gas/ppc/lsp-checks.s: New test. * testsuite/gas/ppc/lsp.d, * testsuite/gas/ppc/lsp.s: New test. * testsuite/gas/ppc/ppc.exp: Run new tests.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog5
-rw-r--r--include/opcode/ppc.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index fcf8466..db500dc 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-21 Alexander Fedotov <alexander.fedotov@nxp.com>
+ Edmar Wienskoski <edmar.wienskoski@nxp.com>
+
+ * opcode/ppc.h (PPC_OPCODE_LSP): New define.
+
2017-08-14 Gustavo Romero <gromero@linux.vnet.ibm.com>
* elf/common.h (NT_PPC_TAR): New macro.
diff --git a/include/opcode/ppc.h b/include/opcode/ppc.h
index cec0e10..21b1221 100644
--- a/include/opcode/ppc.h
+++ b/include/opcode/ppc.h
@@ -215,6 +215,9 @@ extern const int vle_num_opcodes;
the underlying machine instruction. */
#define PPC_OPCODE_RAW 0x40000000000ull
+/* Opcode is supported by PowerPC LSP */
+#define PPC_OPCODE_LSP 0x80000000000ull
+
/* A macro to extract the major opcode from an instruction. */
#define PPC_OP(i) (((i) >> 26) & 0x3f)