This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[RFA] e500 PPC port -- BFD
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Sat, 17 Aug 2002 23:50:52 -0400
- Subject: [RFA] e500 PPC port -- BFD
This adds e500 support to the Powerpc architecture.
See the corresponding gcc contribution for more information:
http://gcc.gnu.org/ml/gcc-patches/2002-07/msg01399.html
[Gas and opcodes will follow.]
Elena
2002-08-17 Elena Zannoni <ezannoni@redhat.com>
* archures.c (bfd_mach_ppc_e500): Added.
* bfd-in2.h: Rebuilt.
* cpu-powerpc.c (bfd_powerpc_archs): Added e500.
Index: archures.c
===================================================================
RCS file: /cvs/uberbaum/bfd/archures.c,v
retrieving revision 1.52
diff -u -r1.52 archures.c
--- archures.c 17 Jul 2002 14:15:49 -0000 1.52
+++ archures.c 18 Aug 2002 03:29:09 -0000
@@ -182,6 +182,7 @@
.#define bfd_mach_ppc_rs64ii 642
.#define bfd_mach_ppc_rs64iii 643
.#define bfd_mach_ppc_7400 7400
+.#define bfd_mach_ppc_e500 500
. bfd_arch_rs6000, {* IBM RS/6000 *}
.#define bfd_mach_rs6k 0
.#define bfd_mach_rs6k_rs1 6001
Index: bfd-in2.h
===================================================================
RCS file: /cvs/uberbaum/bfd/bfd-in2.h,v
retrieving revision 1.165
diff -u -r1.165 bfd-in2.h
--- bfd-in2.h 13 Aug 2002 20:08:49 -0000 1.165
+++ bfd-in2.h 18 Aug 2002 03:29:09 -0000
@@ -1572,6 +1572,7 @@
#define bfd_mach_ppc_rs64ii 642
#define bfd_mach_ppc_rs64iii 643
#define bfd_mach_ppc_7400 7400
+#define bfd_mach_ppc_e500 500
bfd_arch_rs6000, /* IBM RS/6000 */
#define bfd_mach_rs6k 0
#define bfd_mach_rs6k_rs1 6001
Index: cpu-powerpc.c
===================================================================
RCS file: /cvs/uberbaum/bfd/cpu-powerpc.c,v
retrieving revision 1.10
diff -u -r1.10 cpu-powerpc.c
--- cpu-powerpc.c 27 Jun 2002 11:29:14 -0000 1.10
+++ cpu-powerpc.c 18 Aug 2002 03:29:09 -0000
@@ -270,6 +270,20 @@
&bfd_powerpc_archs[13]
},
{
+ 32, /* 32 bits in a word */
+ 32, /* 32 bits in an address */
+ 8, /* 8 bits in a byte */
+ bfd_arch_powerpc,
+ bfd_mach_ppc_e500,
+ "powerpc",
+ "powerpc:e500",
+ 3,
+ false,
+ powerpc_compatible,
+ bfd_default_scan,
+ &bfd_powerpc_archs[14]
+ },
+ {
32, /* 32 bits in a word */
32, /* 32 bits in an address */
8, /* 8 bits in a byte */