OSDN Git Service

daily update
[pf3gnuchains/pf3gnuchains4x.git] / bfd / cpu-sh.c
index 3b903eb..30cd141 100644 (file)
@@ -1,5 +1,6 @@
 /* BFD library support routines for the Hitachi-SH architecture.
-   Copyright (C) 1993, 97, 1998, 2000 Free Software Foundation, Inc.
+   Copyright 1993, 1994, 1997, 1998, 2000, 2001
+   Free Software Foundation, Inc.
    Hacked by Steve Chamberlain of Cygnus Support.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -22,6 +23,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "sysdep.h"
 #include "libbfd.h"
 
+static boolean scan_mach
+  PARAMS ((const struct bfd_arch_info *, const char *));
+
 static boolean
 scan_mach (info, string)
      const struct bfd_arch_info *info;
@@ -54,6 +58,9 @@ compatible (a,b)
 #define SH3_DSP_NEXT &arch_info_struct[4]
 #define SH3E_NEXT    &arch_info_struct[5]
 #define SH4_NEXT     NULL
+#undef  SH4_NEXT
+#define SH4_NEXT     &arch_info_struct[6]
+#define SH64_NEXT    NULL
 
 static const bfd_arch_info_type arch_info_struct[] =
 {
@@ -141,6 +148,20 @@ static const bfd_arch_info_type arch_info_struct[] =
     scan_mach,
     SH4_NEXT
   },
+  {
+    64,                                /* 64 bits in a word */
+    64,                                /* 64 bits in an address */
+    8,                         /* 8 bits in a byte */
+    bfd_arch_sh,
+    bfd_mach_sh5,
+    "sh",                      /* arch_name  */
+    "sh5",                     /* printable name */
+    1,
+    false,                     /* not the default */
+    bfd_default_compatible,
+    scan_mach,
+    SH64_NEXT
+  },
 };
 
 const bfd_arch_info_type bfd_sh_arch =