From 6534fef9ea089c05d18113b0247ee01d2f4afbb2 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 4 Jan 2010 02:32:55 +0000 Subject: [PATCH] bfd/ * archures.c: Add bfd_mach_ppc_e500mc64. * bfd-in2.h: Regenerate. * cpu-powerpc.c (bfd_powerpc_archs): Add entry for bfd_mach_ppc_e500mc64. gas/ * config/tc-ppc.c (md_show_usage): Document -me500mc64. opcodes/ * ppc-dis.c (ppc_opts): Add entry for "e500mc64". --- bfd/ChangeLog | 7 +++++++ bfd/archures.c | 3 ++- bfd/bfd-in2.h | 1 + bfd/cpu-powerpc.c | 18 ++++++++++++++++-- gas/ChangeLog | 6 +++++- gas/config/tc-ppc.c | 5 +++-- opcodes/ChangeLog | 4 ++++ opcodes/ppc-dis.c | 7 ++++++- 8 files changed, 44 insertions(+), 7 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 44e633478..1bb1aed5e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2010-01-04 Edmar Wienskoski + + * archures.c: Add bfd_mach_ppc_e500mc64. + * bfd-in2.h: Regenerate. + * cpu-powerpc.c (bfd_powerpc_archs): Add entry for + bfd_mach_ppc_e500mc64. + 2010-01-01 Joel Brobecker Fix -Wshadow warnings (seen on ppc-aix) diff --git a/bfd/archures.c b/bfd/archures.c index 8df2ce1c9..e6ecae5af 100644 --- a/bfd/archures.c +++ b/bfd/archures.c @@ -1,6 +1,6 @@ /* BFD library support routines for architectures. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 + 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Hacked by John Gilmore and Steve Chamberlain of Cygnus Support. @@ -230,6 +230,7 @@ DESCRIPTION .#define bfd_mach_ppc_7400 7400 .#define bfd_mach_ppc_e500 500 .#define bfd_mach_ppc_e500mc 5001 +.#define bfd_mach_ppc_e500mc64 5005 . bfd_arch_rs6000, {* IBM RS/6000 *} .#define bfd_mach_rs6k 6000 .#define bfd_mach_rs6k_rs1 6001 diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index c78e17d8e..447f78798 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1901,6 +1901,7 @@ enum bfd_architecture #define bfd_mach_ppc_7400 7400 #define bfd_mach_ppc_e500 500 #define bfd_mach_ppc_e500mc 5001 +#define bfd_mach_ppc_e500mc64 5005 bfd_arch_rs6000, /* IBM RS/6000 */ #define bfd_mach_rs6k 6000 #define bfd_mach_rs6k_rs1 6001 diff --git a/bfd/cpu-powerpc.c b/bfd/cpu-powerpc.c index 0b511f313..76eb018ec 100644 --- a/bfd/cpu-powerpc.c +++ b/bfd/cpu-powerpc.c @@ -1,5 +1,5 @@ /* BFD PowerPC CPU definition - Copyright 1994, 1995, 1996, 2000, 2001, 2002, 2003, 2005, 2007, 2008 + Copyright 1994, 1995, 1996, 2000, 2001, 2002, 2003, 2005, 2007, 2008, 2010 Free Software Foundation, Inc. Contributed by Ian Lance Taylor, Cygnus Support. @@ -299,6 +299,20 @@ const bfd_arch_info_type bfd_powerpc_archs[] = &bfd_powerpc_archs[15] }, { + 64, /* 64 bits in a word */ + 64, /* 64 bits in an address */ + 8, /* 8 bits in a byte */ + bfd_arch_powerpc, + bfd_mach_ppc_e500mc64, + "powerpc", + "powerpc:e500mc64", + 3, + FALSE, /* not the default */ + powerpc_compatible, + bfd_default_scan, + &bfd_powerpc_archs[16] + }, + { 32, /* 32 bits in a word */ 32, /* 32 bits in an address */ 8, /* 8 bits in a byte */ @@ -310,7 +324,7 @@ const bfd_arch_info_type bfd_powerpc_archs[] = FALSE, /* not the default */ powerpc_compatible, bfd_default_scan, - &bfd_powerpc_archs[16] + &bfd_powerpc_archs[17] }, { 32, /* 32 bits in a word */ diff --git a/gas/ChangeLog b/gas/ChangeLog index bb4ccce7f..4622709b0 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2010-01-04 Edmar Wienskoski + + * config/tc-ppc.c (md_show_usage): Document -me500mc64. + 2010-01-03 Daniel Gutson * config/tc-arm.c (struct arm_it): New flag 'is_neon'. @@ -36,7 +40,7 @@ (do_neon_cvt): Likewise. (do_neon_mvn): Likewise. (do_neon_dup): Likewise. - (md_assemble): Call check_neon_suffixes (). + (md_assemble): Call check_neon_suffixes (). For older changes see ChangeLog-2009 diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index e6776022d..327f3c157 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -1,6 +1,6 @@ /* tc-ppc.c -- Assemble for the PowerPC or POWER (RS/6000) Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, - 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. + 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support. This file is part of GAS, the GNU Assembler. @@ -1209,7 +1209,8 @@ PowerPC options:\n\ -mvsx generate code for Vector-Scalar (VSX) instructions\n\ -me300 generate code for PowerPC e300 family\n\ -me500, -me500x2 generate code for Motorola e500 core complex\n\ --me500mc, generate code for Freescale e500mc core complex\n\ +-me500mc, generate code for Freescale e500mc core complex\n\ +-me500mc64, generate code for Freescale e500mc64 core complex\n\ -mspe generate code for Motorola SPE instructions\n\ -mregnames Allow symbolic names for registers\n\ -mno-regnames Do not allow symbolic names for registers\n")); diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 5c191d298..6e6c721d4 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2010-01-04 Edmar Wienskoski + + * ppc-dis.c (ppc_opts): Add entry for "e500mc64". + 2010-01-02 Doug Evans * cgen-asm.in: Update copyright year. diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index ac88f7698..25e3c5f86 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -1,6 +1,6 @@ /* ppc-dis.c -- Disassemble PowerPC instructions Copyright 1994, 1995, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, - 2008, 2009 Free Software Foundation, Inc. + 2008, 2009, 2010 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support This file is part of the GNU opcodes library. @@ -114,6 +114,11 @@ struct ppc_mopt ppc_opts[] = { | PPC_OPCODE_PMR | PPC_OPCODE_CACHELCK | PPC_OPCODE_RFMCI | PPC_OPCODE_E500MC), 0 }, + { "e500mc64", (PPC_OPCODE_PPC | PPC_OPCODE_BOOKE | PPC_OPCODE_ISEL + | PPC_OPCODE_PMR | PPC_OPCODE_CACHELCK | PPC_OPCODE_RFMCI + | PPC_OPCODE_64 | PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6 + | PPC_OPCODE_POWER7), + 0 }, { "e500x2", (PPC_OPCODE_PPC | PPC_OPCODE_BOOKE | PPC_OPCODE_SPE | PPC_OPCODE_ISEL | PPC_OPCODE_EFS | PPC_OPCODE_BRLOCK | PPC_OPCODE_PMR | PPC_OPCODE_CACHELCK | PPC_OPCODE_RFMCI -- 2.11.4.GIT