diff options
author | Walter Lee <walt@tilera.com> | 2012-02-25 18:57:55 +0000 |
---|---|---|
committer | Walter Lee <walt@tilera.com> | 2012-02-25 18:57:55 +0000 |
commit | 825902491e89db303b036d82eef32ef0b07d4317 (patch) | |
tree | 13498fd177a03840343af896d71cadd5bac4ce41 /bfd/cpu-tilegx.c | |
parent | 6fe37d2340f0f261387a6a6f70d288be1d1eeb1d (diff) | |
download | gdb-825902491e89db303b036d82eef32ef0b07d4317.zip gdb-825902491e89db303b036d82eef32ef0b07d4317.tar.gz gdb-825902491e89db303b036d82eef32ef0b07d4317.tar.bz2 |
Properly create and use a bfd_arch_info_type for 32-bit tilegx.
bfd/
* arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
* bfd-in2.h: Regenerate.
* cpu-tilegx.c (bfd_tilegx32_arch): define.
(bfd_tilegx_arch): link to bfd_tilegx32_arch.
gas/
* tc-tilegx.c (md_begin): set architecture and machine.
Diffstat (limited to 'bfd/cpu-tilegx.c')
-rw-r--r-- | bfd/cpu-tilegx.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/bfd/cpu-tilegx.c b/bfd/cpu-tilegx.c index dc9bc63..f98cb0c 100644 --- a/bfd/cpu-tilegx.c +++ b/bfd/cpu-tilegx.c @@ -22,6 +22,23 @@ #include "sysdep.h" #include "libbfd.h" +const bfd_arch_info_type bfd_tilegx32_arch = + { + 32, /* 32 bits in a word */ + 32, /* 32 bits in an address */ + 8, /* 8 bits in a byte */ + bfd_arch_tilegx, + bfd_mach_tilegx32, + "tilegx32", + "tilegx32", + 3, + FALSE, + bfd_default_compatible, + bfd_default_scan, + bfd_arch_default_fill, + 0, + }; + const bfd_arch_info_type bfd_tilegx_arch = { 64, /* 64 bits in a word */ @@ -36,5 +53,5 @@ const bfd_arch_info_type bfd_tilegx_arch = bfd_default_compatible, bfd_default_scan, bfd_arch_default_fill, - 0, + &bfd_tilegx32_arch, }; |