aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Bergner <bergner@linux.ibm.com>2022-09-12 14:56:20 -0500
committerPeter Bergner <bergner@linux.ibm.com>2022-09-12 14:56:20 -0500
commit29a6701e530a4119d3c0d261da2b7b24034c9233 (patch)
tree8883613459280ee05df3b9e903568aa555a23953 /include
parentfbdc50d2c7ce12458aa925ea3dd8512f652929bd (diff)
downloadgdb-29a6701e530a4119d3c0d261da2b7b24034c9233.zip
gdb-29a6701e530a4119d3c0d261da2b7b24034c9233.tar.gz
gdb-29a6701e530a4119d3c0d261da2b7b24034c9233.tar.bz2
ppc: Document the -mfuture and -Mfuture options and make them usable
The -mfuture and -Mfuture options which are used for adding potential new ISA instructions were not documented. They also lacked a bitmask so new instructions could not be enabled by those options. Fixed. binutils/ * doc/binutils.texi: Document -Mfuture. gas/ * config/tc-ppc.c: Document -mfuture * doc/c-ppc.texi: Likewise. include/ * opcode/ppc.h (PPC_OPCODE_FUTURE): Define. opcodes/ * ppc-dis.c (ppc_opts) <future>: Use it. * ppc-opc.c (FUTURE): Define.
Diffstat (limited to 'include')
-rw-r--r--include/opcode/ppc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/opcode/ppc.h b/include/opcode/ppc.h
index 3578f0d..c5d96a2 100644
--- a/include/opcode/ppc.h
+++ b/include/opcode/ppc.h
@@ -240,6 +240,9 @@ extern const unsigned int spe2_num_opcodes;
/* Opcode is only supported by SVP64 extensions (LibreSOC architecture). */
#define PPC_OPCODE_SVP64 0x800000000000ull
+/* Opcode is only supported by 'future' architecture. */
+#define PPC_OPCODE_FUTURE 0x1000000000000ull
+
/* A macro to extract the major opcode from an instruction. */
#define PPC_OP(i) (((i) >> 26) & 0x3f)