From 29a6701e530a4119d3c0d261da2b7b24034c9233 Mon Sep 17 00:00:00 2001 From: Peter Bergner Date: Mon, 12 Sep 2022 14:56:20 -0500 Subject: 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) : Use it. * ppc-opc.c (FUTURE): Define. --- include/opcode/ppc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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) -- cgit v1.1