diff options
author | Alan Modra <amodra@bigpond.net.au> | 2010-02-08 01:59:33 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2010-02-08 01:59:33 +0000 |
commit | a4eb5e757f7bab36dc314b14022ea78cae1cfa1a (patch) | |
tree | bb84a1bdf55373f7909aa21c38fc7932c3cda398 /bfd | |
parent | 51ab0d46ba629d1e0a72c50adadd9fec9cb28c74 (diff) | |
download | binutils-redhat-a4eb5e757f7bab36dc314b14022ea78cae1cfa1a.tar.gz |
include/
* opcode/ppc.h (PPC_OPCODE_TITAN): Define.
bfd/
* archures.c (bfd_mach_ppc_titan): Define.
* bfd-in2.h: Regenerate.
* cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
opcodes/
* ppc-dis.c (ppc_opts): Add titan entry.
* ppc-opc.c (TITAN, MULHW): Define.
(powerpc_opcodes): Support AppliedMicro Titan core (APM83xxx).
gas/
* config/tc-ppc.c (md_show_usage): Mention -mtitan. Don't use tabs.
(ppc_mach): Handle titan.
* doc/c-ppc.texi: Mention -mtitan.
gas/testsuite/
* gas/ppc/titan.d, * gas/ppc/titan.s: New test.
* gas/ppc/ppc.exp: Run it.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/archures.c | 3 | ||||
-rw-r--r-- | bfd/bfd-in2.h | 3 | ||||
-rw-r--r-- | bfd/cpu-powerpc.c | 14 |
4 files changed, 24 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 740db2d02d..0dcad6c9b5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com> + + * archures.c (bfd_mach_ppc_titan): Define. + * bfd-in2.h: Regenerate. + * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry. + 2010-02-08 Alan Modra <amodra@gmail.com> * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code. diff --git a/bfd/archures.c b/bfd/archures.c index e6ecae5af1..c1aefece64 100644 --- a/bfd/archures.c +++ b/bfd/archures.c @@ -230,7 +230,8 @@ 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 +.#define bfd_mach_ppc_e500mc64 5005 +.#define bfd_mach_ppc_titan 83 . 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 8d9a464599..448f5657af 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1904,7 +1904,8 @@ 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 +#define bfd_mach_ppc_e500mc64 5005 +#define bfd_mach_ppc_titan 83 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 76eb018ecb..9bd60af33e 100644 --- a/bfd/cpu-powerpc.c +++ b/bfd/cpu-powerpc.c @@ -338,6 +338,20 @@ const bfd_arch_info_type bfd_powerpc_archs[] = FALSE, /* not the default */ powerpc_compatible, bfd_default_scan, + &bfd_powerpc_archs[18] + }, + { + 32, /* 32 bits in a word */ + 32, /* 32 bits in an address */ + 8, /* 8 bits in a byte */ + bfd_arch_powerpc, + bfd_mach_ppc_titan, + "powerpc", + "powerpc:titan", + 3, + FALSE, /* not the default */ + powerpc_compatible, + bfd_default_scan, 0 } }; |