[Kernelloader-cvs] linux/simple-toolchain binutils-cvs-20121124-mipsel-ps2.patch, NONE, 1.1 binuti
Run Linux on the Playstation 2
Brought to you by:
kloader
From: Mega M. <kl...@us...> - 2012-11-24 15:24:22
|
Update of /cvsroot/kernelloader/linux/simple-toolchain In directory vz-cvs-3.sog:/tmp/cvs-serv30346 Added Files: binutils-cvs-20121124-mipsel-ps2.patch binutils-cvs-20121124-mipsel-ps2-tests.patch Log Message: Add patch for current CVS version of binutils. --- NEW FILE: binutils-cvs-20121124-mipsel-ps2.patch --- diff -Nurp binutils-cvs/bfd/archures.c binutils-ps2/bfd/archures.c --- binutils-cvs/bfd/archures.c 2012-11-09 18:36:12.000000000 +0100 +++ binutils-ps2/bfd/archures.c 2012-11-24 02:26:11.247547770 +0100 @@ -161,6 +161,7 @@ DESCRIPTION .#define bfd_mach_mips5000 5000 .#define bfd_mach_mips5400 5400 .#define bfd_mach_mips5500 5500 +.#define bfd_mach_mips5900 5900 .#define bfd_mach_mips6000 6000 .#define bfd_mach_mips7000 7000 .#define bfd_mach_mips8000 8000 diff -Nurp binutils-cvs/bfd/bfd-in2.h binutils-ps2/bfd/bfd-in2.h --- binutils-cvs/bfd/bfd-in2.h 2012-11-09 18:36:12.000000000 +0100 +++ binutils-ps2/bfd/bfd-in2.h 2012-11-24 02:26:11.247547770 +0100 @@ -1892,6 +1892,7 @@ enum bfd_architecture #define bfd_mach_mips5000 5000 #define bfd_mach_mips5400 5400 #define bfd_mach_mips5500 5500 +#define bfd_mach_mips5900 5900 [...2391 lines suppressed...] {"psubb", "D,S,T", 0x47c00001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2E }, {"psubb", "D,S,T", 0x4bc00001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2F|IL3A }, +{"psubb", "d,v,t", 0x70000248, 0xfc0007ff, WR_d|RD_s|RD_t, 0, T5 }, {"psubh", "D,S,T", 0x47400001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2E }, {"psubh", "D,S,T", 0x4b400001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2F|IL3A }, +{"psubh", "d,v,t", 0x70000148, 0xfc0007ff, WR_d|RD_s|RD_t, 0, T5 }, {"psubw", "D,S,T", 0x47600001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2E }, {"psubw", "D,S,T", 0x4b600001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2F|IL3A }, +{"psubw", "d,v,t", 0x70000048, 0xfc0007ff, WR_d|RD_s|RD_t, 0, T5 }, {"psubd", "D,S,T", 0x47e00001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2E }, {"psubd", "D,S,T", 0x4be00001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2F|IL3A }, {"psubsb", "D,S,T", 0x47800001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2E }, {"psubsb", "D,S,T", 0x4b800001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2F|IL3A }, +{"psubsb", "d,v,t", 0x70000648, 0xfc0007ff, WR_d|RD_s|RD_t, 0, T5 }, {"psubsh", "D,S,T", 0x47000001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2E }, {"psubsh", "D,S,T", 0x4b000001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2F|IL3A }, +{"psubsh", "d,v,t", 0x70000548, 0xfc0007ff, WR_d|RD_s|RD_t, 0, T5 }, {"psubusb", "D,S,T", 0x47a00001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2E }, {"psubusb", "D,S,T", 0x4ba00001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2F|IL3A }, {"psubush", "D,S,T", 0x47200001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, IL2E }, --- NEW FILE: binutils-cvs-20121124-mipsel-ps2-tests.patch --- diff -Nurp binutils-ps2/gas/testsuite/gas/mips/mips.exp binutils-ps2-tests/gas/testsuite/gas/mips/mips.exp --- binutils-ps2/gas/testsuite/gas/mips/mips.exp 2012-11-08 19:21:25.000000000 +0100 +++ binutils-ps2-tests/gas/testsuite/gas/mips/mips.exp 2012-11-24 00:15:58.107558268 +0100 @@ -71,6 +71,14 @@ # The architecture provides 32- or 64-bit General Purpose # Registers. # +# n32native +# The architecture supports ABI n32, but not n64 or o64. +# The architecture provides support for ld and sd in ABI o32. +# The Linux kernel for R5900 is using ABI o32 with support for +# 64 bit and 128 bit registers. ABI o64 can't be used, because +# 64 bit addresses are not supported. +# The FPU is also limited to 32 bit. +# # as_flags: The assembler flags used when assembling tests for this # architecture. # @@ -443,6 +451,9 @@ mips_arch_create octeon2 64 octeonp {} \ [...1371 lines suppressed...] + ctc2.ni $0,$31 + + # Floating point transfer from VU + qmfc2 $0,$0 + qmfc2 $0,$31 + qmfc2.i $0,$0 + qmfc2.i $0,$31 + qmfc2.ni $0,$0 + qmfc2.ni $0,$31 + + # Floating point transfer to VU + qmtc2 $0,$0 + qmtc2 $0,$31 + qmtc2.i $0,$0 + qmtc2.i $0,$31 + qmtc2.ni $0,$0 + qmtc2.ni $0,$31 + +# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ... + .space 8 |