cpu-i386.c revision 60484
1310419Sdelphij/* BFD support for the Intel 386 architecture.
2275970Scy   Copyright 1992, 94, 95, 1996 Free Software Foundation, Inc.
3275970Scy
4275970ScyThis file is part of BFD, the Binary File Descriptor library.
5310419Sdelphij
6275970ScyThis program is free software; you can redistribute it and/or modify
7275970Scyit under the terms of the GNU General Public License as published by
8275970Scythe Free Software Foundation; either version 2 of the License, or
9275970Scy(at your option) any later version.
10275970Scy
11275970ScyThis program is distributed in the hope that it will be useful,
12275970Scybut WITHOUT ANY WARRANTY; without even the implied warranty of
13275970ScyMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14275970ScyGNU General Public License for more details.
15275970Scy
16275970ScyYou should have received a copy of the GNU General Public License
17275970Scyalong with this program; if not, write to the Free Software
18275970ScyFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
19275970Scy
20275970Scy#include "bfd.h"
21275970Scy#include "sysdep.h"
22275970Scy#include "libbfd.h"
23275970Scy
24275970Scyconst bfd_arch_info_type bfd_i386_arch_intel_syntax =
25275970Scy{
26275970Scy  32,	/* 32 bits in a word */
27275970Scy  32,	/* 32 bits in an address */
28275970Scy  8,	/* 8 bits in a byte */
29275970Scy  bfd_arch_i386,
30275970Scy  bfd_mach_i386_i386_intel_syntax,
31275970Scy  "i386:intel",
32275970Scy  "i386:intel",
33275970Scy  3,
34275970Scy  true,
35275970Scy  bfd_default_compatible,
36275970Scy  bfd_default_scan ,
37275970Scy  0,
38275970Scy};
39275970Scystatic const bfd_arch_info_type i8086_arch =
40275970Scy{
41275970Scy  32,	/* 32 bits in a word */
42275970Scy  32,	/* 32 bits in an address (well, not really) */
43285612Sdelphij  8,	/* 8 bits in a byte */
44275970Scy  bfd_arch_i386,
45275970Scy  bfd_mach_i386_i8086,
46275970Scy  "i8086",
47275970Scy  "i8086",
48285612Sdelphij  3,
49275970Scy  false,
50275970Scy  bfd_default_compatible,
51275970Scy  bfd_default_scan ,
52275970Scy  &bfd_i386_arch_intel_syntax,
53275970Scy};
54275970Scy
55275970Scyconst bfd_arch_info_type bfd_i386_arch =
56275970Scy{
57275970Scy  32,	/* 32 bits in a word */
58275970Scy  32,	/* 32 bits in an address */
59275970Scy  8,	/* 8 bits in a byte */
60275970Scy  bfd_arch_i386,
61275970Scy  bfd_mach_i386_i386,
62275970Scy  "i386",
63275970Scy  "i386",
64275970Scy  3,
65275970Scy  true,
66275970Scy  bfd_default_compatible,
67275970Scy  bfd_default_scan ,
68275970Scy  &i8086_arch,
69294904Sdelphij};
70275970Scy
71275970Scy