1 |
/* BFD support for the FRV processor. |
/* BFD support for the FRV processor. |
2 |
Copyright (C) 2002 Free Software Foundation, Inc. |
Copyright 2002, 2003, 2004 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of BFD, the Binary File Descriptor library. |
This file is part of BFD, the Binary File Descriptor library. |
5 |
|
|
21 |
#include "sysdep.h" |
#include "sysdep.h" |
22 |
#include "libbfd.h" |
#include "libbfd.h" |
23 |
|
|
|
enum { |
|
|
I_frv_generic, |
|
|
I_frv_simple, |
|
|
I_frv_500, |
|
|
I_frv_300, |
|
|
}; |
|
|
|
|
24 |
#define FRV_ARCH(MACHINE, NAME, DEFAULT, NEXT) \ |
#define FRV_ARCH(MACHINE, NAME, DEFAULT, NEXT) \ |
25 |
{ \ |
{ \ |
26 |
32, /* 32 bits in a word */ \ |
32, /* 32 bits in a word */ \ |
38 |
} |
} |
39 |
|
|
40 |
static const bfd_arch_info_type arch_info_300 |
static const bfd_arch_info_type arch_info_300 |
41 |
= FRV_ARCH (bfd_mach_fr300, "fr300", false, (bfd_arch_info_type *)0); |
= FRV_ARCH (bfd_mach_fr300, "fr300", FALSE, (bfd_arch_info_type *)0); |
42 |
|
|
43 |
static const bfd_arch_info_type arch_info_400 |
static const bfd_arch_info_type arch_info_400 |
44 |
= FRV_ARCH (bfd_mach_fr400, "fr400", false, &arch_info_300); |
= FRV_ARCH (bfd_mach_fr400, "fr400", FALSE, &arch_info_300); |
45 |
|
|
46 |
|
static const bfd_arch_info_type arch_info_450 |
47 |
|
= FRV_ARCH (bfd_mach_fr450, "fr450", FALSE, &arch_info_400); |
48 |
|
|
49 |
static const bfd_arch_info_type arch_info_500 |
static const bfd_arch_info_type arch_info_500 |
50 |
= FRV_ARCH (bfd_mach_fr500, "fr500", false, &arch_info_400); |
= FRV_ARCH (bfd_mach_fr500, "fr500", FALSE, &arch_info_450); |
51 |
|
|
52 |
|
static const bfd_arch_info_type arch_info_550 |
53 |
|
= FRV_ARCH (bfd_mach_fr550, "fr550", FALSE, &arch_info_500); |
54 |
|
|
55 |
static const bfd_arch_info_type arch_info_simple |
static const bfd_arch_info_type arch_info_simple |
56 |
= FRV_ARCH (bfd_mach_frvsimple, "simple", false, &arch_info_500); |
= FRV_ARCH (bfd_mach_frvsimple, "simple", FALSE, &arch_info_550); |
57 |
|
|
58 |
static const bfd_arch_info_type arch_info_tomcat |
static const bfd_arch_info_type arch_info_tomcat |
59 |
= FRV_ARCH (bfd_mach_frvtomcat, "tomcat", false, &arch_info_simple); |
= FRV_ARCH (bfd_mach_frvtomcat, "tomcat", FALSE, &arch_info_simple); |
60 |
|
|
61 |
const bfd_arch_info_type bfd_frv_arch |
const bfd_arch_info_type bfd_frv_arch |
62 |
= FRV_ARCH (bfd_mach_frv, "frv", true, &arch_info_tomcat); |
= FRV_ARCH (bfd_mach_frv, "frv", TRUE, &arch_info_tomcat); |
63 |
|
|