OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [bfd/] [cpu-spu.c] - Blame information for rev 853

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
/* Copyright 2006, 2007 Free Software Foundation, Inc.
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
7
   the Free Software Foundation; either version 3 of the License, or
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
 
19
#include "sysdep.h"
20
#include "bfd.h"
21
#include "libbfd.h"
22
 
23
 
24
static const bfd_arch_info_type *
25
spu_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
 
38
const 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 */
49
    TRUE,               /* the default machine for the architecture */
50
    spu_compatible,     /* the spu is only compatible with itself, see above */
51
    bfd_default_scan,
52
    0,                   /* next -- there are none! */
53
  }
54
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.