diff options
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] }; |