]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/cpu-spu.c
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / bfd / cpu-spu.c
CommitLineData
82704155 1/* Copyright (C) 2006-2019 Free Software Foundation, Inc.
e9f53129
AM
2
3 This file is part of BFD, the Binary File Descriptor library.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
cd123cb7 7 the Free Software Foundation; either version 3 of the License, or
e9f53129
AM
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
18
e9f53129 19#include "sysdep.h"
3db64b00 20#include "bfd.h"
e9f53129
AM
21#include "libbfd.h"
22
23
24static const bfd_arch_info_type *
25spu_compatible (const bfd_arch_info_type *a, const bfd_arch_info_type *b)
26{
27 BFD_ASSERT (a->arch == bfd_arch_spu);
28 switch (b->arch)
29 {
30 default:
31 return NULL;
32 case bfd_arch_spu:
33 return bfd_default_compatible (a, b);
34 }
35 /*NOTREACHED*/
36}
37
38const bfd_arch_info_type bfd_spu_arch[] =
39{
40 {
41 32, /* 32 bits in a word */
42 32, /* 32 bits in an address */
43 8, /* 8 bits in a byte */
44 bfd_arch_spu, /* architecture */
45 bfd_mach_spu, /* machine */
46 "spu", /* architecture name */
47 "spu:256K", /* printable name */
48 3, /* aligned power */
07d6d2b8 49 TRUE, /* the default machine for the architecture */
e9f53129
AM
50 spu_compatible, /* the spu is only compatible with itself, see above */
51 bfd_default_scan,
b7761f11 52 bfd_arch_default_fill,
e9f53129
AM
53 0, /* next -- there are none! */
54 }
55};