Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/bfd/cpu-pj.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* BFD library support routines for the Pico Java architecture.
    2    Copyright 1999, 2000 Free Software Foundation, Inc.
     2   Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    33   Hacked by Steve Chamberlain of Transmeta. sac@pobox.com
    44
     
    2323#include "libbfd.h"
    2424
    25 static boolean
    26 scan_mach (info, string)
    27      const struct bfd_arch_info *info;
    28      const char *string;
    29 {
    30   if (strcasecmp (info->printable_name, string) == 0)
    31     return true;
    32   return false;
    33 }
    34 
    35 #if 0
    36 /* This routine is provided two arch_infos and returns whether
    37    they'd be compatible */
    38 
    39 static const bfd_arch_info_type *
    40 compatible (a,b)
    41      const bfd_arch_info_type *a;
    42      const bfd_arch_info_type *b;
    43 {
    44   if (a->arch != b->arch || a->mach != b->mach)
    45    return NULL;
    46   return a;
    47 }
    48 #endif
    49 
    50 static const bfd_arch_info_type arch_info_struct[] =
    51 {
    52   {
    53     32,                         /* 32 bits in a word */
    54     32,                         /* 32 bits in an address */
    55     8,                          /* 8 bits in a byte */
    56     bfd_arch_pj,
    57     0,
    58     "pj",                       /* arch_name  */
    59     "pj",                       /* printable name */
    60     1,
    61     false,                      /* not the default */
    62     bfd_default_compatible,
    63     scan_mach,
    64     0,
    65   },
    66 };
    67 
    6825const bfd_arch_info_type bfd_pj_arch =
    6926{
     
    7633  "pj",                         /* printable name */
    7734  1,
    78   true,                         /* the default machine */
     35  TRUE,                         /* the default machine */
    7936  bfd_default_compatible,
    80   scan_mach,
    81   &arch_info_struct [0]
     37  bfd_default_scan,
     38  0
    8239};
Note: See TracChangeset for help on using the changeset viewer.