Cleanup ppc code dealing with opcode dumps.
authorPeter Bergner <bergner@vnet.ibm.com>
Mon, 7 May 2018 14:40:59 +0000 (09:40 -0500)
committerPeter Bergner <bergner@vnet.ibm.com>
Mon, 7 May 2018 14:40:59 +0000 (09:40 -0500)
commit2ceb7719f763b9e541a379d8ac7d53a72794fdd4
treec8670b17f7f33270471dd6dbf6e750485b96e6e0
parentce4ec1a9b6c442a9feefa18dd8734372a718665c
Cleanup ppc code dealing with opcode dumps.

include/
* opcode/ppc.h (powerpc_num_opcodes): Change type to unsigned.
(vle_num_opcodes): Likewise.
(spe2_num_opcodes): Likewise.

opcodes/
* ppc-opc.c (powerpc_num_opcodes): Likewise.
(vle_num_opcodes): Likewise.
(spe2_num_opcodes): Likewise.
* ppc-dis.c (disassemble_init_powerpc) <powerpc_opcd_indices>: Rewrite
initialization loop.
(disassemble_init_powerpc) <vle_opcd_indices>: Likewise.
(disassemble_init_powerpc) <spe2_opcd_indices>: Likewise.  Initialize
only once.

gas/
* config/tc-ppc.c (ppc_setup_opcodes) <powerpc_opcodes>: Rewrite code
to dump the entire opcode table.
(ppc_setup_opcodes) <spe2_opcodes>: Likewise.
(ppc_setup_opcodes) <vle_opcodes>: Likewise.  Fix calculation of
opcode index.
gas/ChangeLog
gas/config/tc-ppc.c
include/ChangeLog
include/opcode/ppc.h
opcodes/ChangeLog
opcodes/ppc-dis.c
opcodes/ppc-opc.c