cpu-s390.c revision 130561
1145524Sdarrenr/* BFD support for the s390 processor.
2145524Sdarrenr   Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
3298107Sgjb   Contributed by Carl B. Pedersen and Martin Schwidefsky.
4145524Sdarrenr
5162199Sobrien   This file is part of BFD, the Binary File Descriptor library.
6145524Sdarrenr
7145524Sdarrenr   This program is free software; you can redistribute it and/or modify
8145524Sdarrenr   it under the terms of the GNU General Public License as published by
9145524Sdarrenr   the Free Software Foundation; either version 2 of the License, or
10162199Sobrien   (at your option) any later version.
11162199Sobrien
12145524Sdarrenr   This program is distributed in the hope that it will be useful,
13145524Sdarrenr   but WITHOUT ANY WARRANTY; without even the implied warranty of
14145524Sdarrenr   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15145524Sdarrenr   GNU General Public License for more details.
16145524Sdarrenr
17145524Sdarrenr   You should have received a copy of the GNU General Public License
18145524Sdarrenr   along with this program; if not, write to the Free Software
19145524Sdarrenr   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20145524Sdarrenr   02111-1307, USA.  */
21145524Sdarrenr
22145524Sdarrenr#include "bfd.h"
23145524Sdarrenr#include "sysdep.h"
24145524Sdarrenr#include "libbfd.h"
25145524Sdarrenr
26145524Sdarrenrconst bfd_arch_info_type bfd_s390_64_arch =
27145524Sdarrenr{
28145524Sdarrenr    64,        /* bits in a word */
29145524Sdarrenr    64,        /* bits in an address */
30145524Sdarrenr    8, /* bits in a byte */
31145524Sdarrenr    bfd_arch_s390,
32145524Sdarrenr    bfd_mach_s390_64,
33145524Sdarrenr    "s390",
34    "s390:64-bit",
35    3, /* section alignment power */
36    TRUE, /* the default */
37    bfd_default_compatible,
38    bfd_default_scan,
39    NULL
40};
41
42const bfd_arch_info_type bfd_s390_arch =
43{
44    32,	/* bits in a word */
45    32,	/* bits in an address */
46    8,	/* bits in a byte */
47    bfd_arch_s390,
48    bfd_mach_s390_31,
49    "s390",
50    "s390:31-bit",
51    3, /* section alignment power */
52    TRUE, /* the default */
53    bfd_default_compatible,
54    bfd_default_scan,
55    &bfd_s390_64_arch
56};
57