diff options
author | Alan Modra <amodra@gmail.com> | 2018-05-07 11:35:22 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-05-08 22:28:44 +0930 |
commit | f413a91378902aadbe4e338a6dc8f33f5f7148a0 (patch) | |
tree | 07530badfb8696ab6121104e32e5b3e4f9683eae /binutils | |
parent | 7785df4880f3828db8cf1715038127e6b858a670 (diff) | |
download | gdb-f413a91378902aadbe4e338a6dc8f33f5f7148a0.zip gdb-f413a91378902aadbe4e338a6dc8f33f5f7148a0.tar.gz gdb-f413a91378902aadbe4e338a6dc8f33f5f7148a0.tar.bz2 |
Correct powerpc spe opcode lookup
Defining SPE2_OPCD_SEGS as 13 discounts the possibility that we'd
ever look up spe2_opcd_indices[14..16], which I think is possible.
Extend that array to size 16+1, using the macros we use to index the
array. Similarly use the index macros for PPC_OPCD_SEGS and
VLE_OPCD_SEGS.
* ppc-dis.c (PPC_OPCD_SEGS): Define using PPC_OP.
(VLE_OPCD_SEGS, SPE2_OPCD_SEGS): Similarly, using macros used to
partition opcode space for index lookup.
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions