[PATCH 0/2] extend opindex and fx_pcrel_adjust to 16 bits

Dmitry Selyutin ghostmansd@gmail.com
Wed May 11 17:59:12 GMT 2022


With the upcoming SVP64 extension[0] to PowerPC architecture, it
became evident that PowerPC operand indices no longer fit 8 bits.
These patches extend both the operand index and the dependent
fx_pcrel_adjust field to 16 bits.
This issue has been discussed in binutils mailing list[1]; I've added
gdb-patches mailing list as well, per MAINTAINERS file instructions,
since I'm unsure if this can break the gdb interface.

You can also find these patches in perhaps a more convenient form in
the libresoc fork of binutils repository[2] (branch fx_pcrel_adjust).

[0] https://libre-soc.org
[1] https://sourceware.org/pipermail/binutils/2022-May/120775.html
[2] https://git.libre-soc.org/?p=binutils-gdb.git;a=log;h=refs/heads/fx_pcrel_adjust

Dmitry Selyutin (2):
  ppc: extend opindex to 16 bits
  gas/write: extend fx_pcrel_adjust to 16 bits

 gas/config/tc-ppc.c  | 11 ++++++-----
 gas/write.h          |  4 ++--
 include/opcode/ppc.h |  5 ++++-
 opcodes/ppc-dis.c    | 12 ++++++------
 4 files changed, 18 insertions(+), 14 deletions(-)

--
2.36.0


More information about the Binutils mailing list