[PATCH 0/3] Add support for MIPS Allegrex
david@davidgf.es
david@davidgf.es
Tue Mar 28 23:02:46 GMT 2023
From: David Guillen Fandos <david@davidgf.net>
These patches add minimal support for MIPS Allegrex CPU (present in
Sony's Playstation Portable devices). They provide the bare minimum
needed for a port. In particular they enable GCC support for the CPU.
I tried to keep the patches small and readable, however the testsuite
requires some rather lengthy files.
David Guillen Fandos (3):
Add Allegrex CPU as a MIPS2-based CPU
Add rotation instructions to allegrex CPU
Adding more instructions to Allegrex CPU
bfd/archures.c | 1 +
bfd/bfd-in2.h | 1 +
bfd/cpu-mips.c | 2 +
bfd/elfxx-mips.c | 8 +
binutils/readelf.c | 1 +
include/elf/mips.h | 1 +
include/opcode/mips.h | 6 +
gas/config/tc-mips.c | 7 +-
opcodes/mips-dis.c | 4 +
opcodes/mips-opc.c | 113 ++++----
gas/testsuite/gas/mips/mips.exp | 35 ++-
gas/testsuite/gas/mips/allegrex.d | 49 ++++
gas/testsuite/gas/mips/allegrex.s | 44 +++
gas/testsuite/gas/mips/allegrex@c0.d | 265 ++++++++++++++++++
gas/testsuite/gas/mips/allegrex@c1.d | 265 ++++++++++++++++++
gas/testsuite/gas/mips/allegrex@cp0b.d | 5 +
gas/testsuite/gas/mips/allegrex@cp0bl.d | 5 +
gas/testsuite/gas/mips/allegrex@cp0c.d | 5 +
gas/testsuite/gas/mips/allegrex@cp2d.d | 5 +
.../gas/mips/allegrex@isa-override-1.d | 28 ++
.../gas/mips/allegrex@isa-override-1.s | 23 ++
.../gas/mips/allegrex@isa-override-2.d | 4 +
.../gas/mips/allegrex@isa-override-2.l | 4 +
gas/testsuite/gas/mips/allegrex@save-sub.d | 5 +
24 files changed, 819 insertions(+), 67 deletions(-)
create mode 100644 gas/testsuite/gas/mips/allegrex.d
create mode 100644 gas/testsuite/gas/mips/allegrex.s
create mode 100644 gas/testsuite/gas/mips/allegrex@c0.d
create mode 100644 gas/testsuite/gas/mips/allegrex@c1.d
create mode 100644 gas/testsuite/gas/mips/allegrex@cp0b.d
create mode 100644 gas/testsuite/gas/mips/allegrex@cp0bl.d
create mode 100644 gas/testsuite/gas/mips/allegrex@cp0c.d
create mode 100644 gas/testsuite/gas/mips/allegrex@cp2d.d
create mode 100644 gas/testsuite/gas/mips/allegrex@isa-override-1.d
create mode 100644 gas/testsuite/gas/mips/allegrex@isa-override-1.s
create mode 100644 gas/testsuite/gas/mips/allegrex@isa-override-2.d
create mode 100644 gas/testsuite/gas/mips/allegrex@isa-override-2.l
create mode 100644 gas/testsuite/gas/mips/allegrex@save-sub.d
--
2.39.2
More information about the Binutils
mailing list