diff options
author | Nicholas Duffek <nsd@redhat.com> | 2000-06-16 20:45:33 +0000 |
---|---|---|
committer | Nicholas Duffek <nsd@redhat.com> | 2000-06-16 20:45:33 +0000 |
commit | 87f33987cd6376948264593f5307a9704fdb83a2 (patch) | |
tree | 91f85ff33687d422af13febc6c47becfd0a712ed /bfd/cpu-rs6000.c | |
parent | a2fdf27064805ed9e44e486fb20a4445e681cabe (diff) | |
download | fsf-binutils-gdb-87f33987cd6376948264593f5307a9704fdb83a2.zip fsf-binutils-gdb-87f33987cd6376948264593f5307a9704fdb83a2.tar.gz fsf-binutils-gdb-87f33987cd6376948264593f5307a9704fdb83a2.tar.bz2 |
* archures.c (enum bfd_architecture): #define constants for
PowerPc and RS6000 machine numbers.
* bfd-in2.h: Regenerate.
* coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
and RS6000 machine numbers using #defined constants from
archures.c.
* cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
machine numbers using #defined constants from archures.c. Add
entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
64-bit words in 620 entry.
* cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
RSC, and RS2.
(bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
Diffstat (limited to 'bfd/cpu-rs6000.c')
-rw-r--r-- | bfd/cpu-rs6000.c | 52 |
1 files changed, 49 insertions, 3 deletions
diff --git a/bfd/cpu-rs6000.c b/bfd/cpu-rs6000.c index 9852ae9..4934542 100644 --- a/bfd/cpu-rs6000.c +++ b/bfd/cpu-rs6000.c @@ -53,18 +53,64 @@ rs6000_compatible (a,b) /*NOTREACHED*/ } +static const bfd_arch_info_type arch_info_struct[] = +{ + { + 32, /* 32 bits in a word */ + 32, /* 32 bits in an address */ + 8, /* 8 bits in a byte */ + bfd_arch_rs6000, + bfd_mach_rs6k_rs1, + "rs6000", + "rs6000:rs1", + 3, + false, /* not the default */ + rs6000_compatible, + bfd_default_scan, + &arch_info_struct[1] + }, + { + 32, /* 32 bits in a word */ + 32, /* 32 bits in an address */ + 8, /* 8 bits in a byte */ + bfd_arch_rs6000, + bfd_mach_rs6k_rsc, + "rs6000", + "rs6000:rsc", + 3, + false, /* not the default */ + rs6000_compatible, + bfd_default_scan, + &arch_info_struct[2] + }, + { + 32, /* 32 bits in a word */ + 32, /* 32 bits in an address */ + 8, /* 8 bits in a byte */ + bfd_arch_rs6000, + bfd_mach_rs6k_rs2, + "rs6000", + "rs6000:rs2", + 3, + false, /* not the default */ + rs6000_compatible, + bfd_default_scan, + 0 + } +}; + const bfd_arch_info_type bfd_rs6000_arch = { 32, /* 32 bits in a word */ 32, /* 32 bits in an address */ 8, /* 8 bits in a byte */ bfd_arch_rs6000, - 6000, /* only 1 machine */ + bfd_mach_rs6k, /* POWER common architecture */ "rs6000", "rs6000:6000", 3, - true, /* the one and only */ + true, /* the default */ rs6000_compatible, bfd_default_scan, - 0, + &arch_info_struct[0] }; |