diff options
author | Peter Bergner <bergner@linux.ibm.com> | 2022-09-12 14:56:20 -0500 |
---|---|---|
committer | Peter Bergner <bergner@linux.ibm.com> | 2022-09-12 14:56:20 -0500 |
commit | 29a6701e530a4119d3c0d261da2b7b24034c9233 (patch) | |
tree | 8883613459280ee05df3b9e903568aa555a23953 /opcodes | |
parent | fbdc50d2c7ce12458aa925ea3dd8512f652929bd (diff) | |
download | gdb-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 'opcodes')
-rw-r--r-- | opcodes/ppc-dis.c | 3 | ||||
-rw-r--r-- | opcodes/ppc-opc.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index 97f2e20..3ba0627 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -208,7 +208,8 @@ struct ppc_mopt ppc_opts[] = { { "future", (PPC_OPCODE_PPC | PPC_OPCODE_ISEL | PPC_OPCODE_64 | PPC_OPCODE_POWER4 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6 | PPC_OPCODE_POWER7 | PPC_OPCODE_POWER8 | PPC_OPCODE_POWER9 - | PPC_OPCODE_POWER10 | PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX), + | PPC_OPCODE_POWER10 | PPC_OPCODE_ALTIVEC | PPC_OPCODE_VSX + | PPC_OPCODE_FUTURE), 0 }, { "ppc", PPC_OPCODE_PPC, 0 }, diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index 934b1bf..25c96ba 100644 --- a/opcodes/ppc-opc.c +++ b/opcodes/ppc-opc.c @@ -4847,6 +4847,7 @@ const unsigned int num_powerpc_operands = (sizeof (powerpc_operands) #define POWER8 PPC_OPCODE_POWER8 #define POWER9 PPC_OPCODE_POWER9 #define POWER10 PPC_OPCODE_POWER10 +#define FUTURE PPC_OPCODE_FUTURE #define CELL PPC_OPCODE_CELL #define PPC64 PPC_OPCODE_64 | PPC_OPCODE_64_BRIDGE #define NON32 (PPC_OPCODE_64 | PPC_OPCODE_POWER4 \ |