ppc: extend opindex to 16 bits
authorDmitry Selyutin <ghostmansd@gmail.com>
Wed, 11 May 2022 17:17:57 +0000 (17:17 +0000)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sat, 14 May 2022 10:28:17 +0000 (10:28 +0000)
commit21ce67a8751e137072342b479518eb2823005d67
tree75d28e0fdad323c1640bc41bd94d1d8af9507835
parent0b99131d48925b260f109613aba933abe711e90b
ppc: extend opindex to 16 bits

With the upcoming SVP64 extension[0] to PowerPC architecture, it became
evident that PowerPC operand indices no longer fit 8 bits. This patch
switches the underlying type to uint16_t, also introducing a special
typedef so that any future extension goes even smoother.

[0] https://libre-soc.org
gas/config/tc-ppc.c
include/opcode/ppc.h
opcodes/ppc-dis.c