OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [bfd/] [cpu-sparc.c] - Diff between revs 834 and 842

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 834 Rev 842
/* BFD support for the SPARC architecture.
/* BFD support for the SPARC architecture.
   Copyright 1992, 1995, 1996, 1998, 2000, 2002, 2005, 2007
   Copyright 1992, 1995, 1996, 1998, 2000, 2002, 2005, 2007
   Free Software Foundation, Inc.
   Free Software Foundation, Inc.
 
 
   This file is part of BFD, the Binary File Descriptor library.
   This file is part of BFD, the Binary File Descriptor library.
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3 of the License, or
   the Free Software Foundation; either version 3 of the License, or
   (at your option) any later version.
   (at your option) any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
   MA 02110-1301, USA.  */
   MA 02110-1301, USA.  */
 
 
#include "sysdep.h"
#include "sysdep.h"
#include "bfd.h"
#include "bfd.h"
#include "libbfd.h"
#include "libbfd.h"
 
 
static const bfd_arch_info_type arch_info_struct[] =
static const bfd_arch_info_type arch_info_struct[] =
{
{
  {
  {
    32, /* bits in a word */
    32, /* bits in a word */
    32, /* bits in an address */
    32, /* bits in an address */
    8,  /* bits in a byte */
    8,  /* bits in a byte */
    bfd_arch_sparc,
    bfd_arch_sparc,
    bfd_mach_sparc_sparclet,
    bfd_mach_sparc_sparclet,
    "sparc",
    "sparc",
    "sparc:sparclet",
    "sparc:sparclet",
    3,
    3,
    FALSE,
    FALSE,
    bfd_default_compatible,
    bfd_default_compatible,
    bfd_default_scan,
    bfd_default_scan,
    &arch_info_struct[1],
    &arch_info_struct[1],
  },
  },
  {
  {
    32, /* bits in a word */
    32, /* bits in a word */
    32, /* bits in an address */
    32, /* bits in an address */
    8,  /* bits in a byte */
    8,  /* bits in a byte */
    bfd_arch_sparc,
    bfd_arch_sparc,
    bfd_mach_sparc_sparclite,
    bfd_mach_sparc_sparclite,
    "sparc",
    "sparc",
    "sparc:sparclite",
    "sparc:sparclite",
    3,
    3,
    FALSE,
    FALSE,
    bfd_default_compatible,
    bfd_default_compatible,
    bfd_default_scan,
    bfd_default_scan,
    &arch_info_struct[2],
    &arch_info_struct[2],
  },
  },
  {
  {
    32, /* bits in a word */
    32, /* bits in a word */
    32, /* bits in an address */
    32, /* bits in an address */
    8,  /* bits in a byte */
    8,  /* bits in a byte */
    bfd_arch_sparc,
    bfd_arch_sparc,
    bfd_mach_sparc_v8plus,
    bfd_mach_sparc_v8plus,
    "sparc",
    "sparc",
    "sparc:v8plus",
    "sparc:v8plus",
    3,
    3,
    FALSE,
    FALSE,
    bfd_default_compatible,
    bfd_default_compatible,
    bfd_default_scan,
    bfd_default_scan,
    &arch_info_struct[3],
    &arch_info_struct[3],
  },
  },
  {
  {
    32, /* bits in a word */
    32, /* bits in a word */
    32, /* bits in an address */
    32, /* bits in an address */
    8,  /* bits in a byte */
    8,  /* bits in a byte */
    bfd_arch_sparc,
    bfd_arch_sparc,
    bfd_mach_sparc_v8plusa,
    bfd_mach_sparc_v8plusa,
    "sparc",
    "sparc",
    "sparc:v8plusa",
    "sparc:v8plusa",
    3,
    3,
    FALSE,
    FALSE,
    bfd_default_compatible,
    bfd_default_compatible,
    bfd_default_scan,
    bfd_default_scan,
    &arch_info_struct[4],
    &arch_info_struct[4],
  },
  },
  {
  {
    32, /* bits in a word */
    32, /* bits in a word */
    32, /* bits in an address */
    32, /* bits in an address */
    8,  /* bits in a byte */
    8,  /* bits in a byte */
    bfd_arch_sparc,
    bfd_arch_sparc,
    bfd_mach_sparc_sparclite_le,
    bfd_mach_sparc_sparclite_le,
    "sparc",
    "sparc",
    "sparc:sparclite_le",
    "sparc:sparclite_le",
    3,
    3,
    FALSE,
    FALSE,
    bfd_default_compatible,
    bfd_default_compatible,
    bfd_default_scan,
    bfd_default_scan,
    &arch_info_struct[5],
    &arch_info_struct[5],
  },
  },
  {
  {
    64, /* bits in a word */
    64, /* bits in a word */
    64, /* bits in an address */
    64, /* bits in an address */
    8,  /* bits in a byte */
    8,  /* bits in a byte */
    bfd_arch_sparc,
    bfd_arch_sparc,
    bfd_mach_sparc_v9,
    bfd_mach_sparc_v9,
    "sparc",
    "sparc",
    "sparc:v9",
    "sparc:v9",
    3,
    3,
    FALSE,
    FALSE,
    bfd_default_compatible,
    bfd_default_compatible,
    bfd_default_scan,
    bfd_default_scan,
    &arch_info_struct[6],
    &arch_info_struct[6],
  },
  },
  {
  {
    64, /* bits in a word */
    64, /* bits in a word */
    64, /* bits in an address */
    64, /* bits in an address */
    8,  /* bits in a byte */
    8,  /* bits in a byte */
    bfd_arch_sparc,
    bfd_arch_sparc,
    bfd_mach_sparc_v9a,
    bfd_mach_sparc_v9a,
    "sparc",
    "sparc",
    "sparc:v9a",
    "sparc:v9a",
    3,
    3,
    FALSE,
    FALSE,
    bfd_default_compatible,
    bfd_default_compatible,
    bfd_default_scan,
    bfd_default_scan,
    &arch_info_struct[7],
    &arch_info_struct[7],
  },
  },
  {
  {
    32, /* bits in a word */
    32, /* bits in a word */
    32, /* bits in an address */
    32, /* bits in an address */
    8,  /* bits in a byte */
    8,  /* bits in a byte */
    bfd_arch_sparc,
    bfd_arch_sparc,
    bfd_mach_sparc_v8plusb,
    bfd_mach_sparc_v8plusb,
    "sparc",
    "sparc",
    "sparc:v8plusb",
    "sparc:v8plusb",
    3,
    3,
    FALSE,
    FALSE,
    bfd_default_compatible,
    bfd_default_compatible,
    bfd_default_scan,
    bfd_default_scan,
    &arch_info_struct[8],
    &arch_info_struct[8],
  },
  },
  {
  {
    64, /* bits in a word */
    64, /* bits in a word */
    64, /* bits in an address */
    64, /* bits in an address */
    8,  /* bits in a byte */
    8,  /* bits in a byte */
    bfd_arch_sparc,
    bfd_arch_sparc,
    bfd_mach_sparc_v9b,
    bfd_mach_sparc_v9b,
    "sparc",
    "sparc",
    "sparc:v9b",
    "sparc:v9b",
    3,
    3,
    FALSE,
    FALSE,
    bfd_default_compatible,
    bfd_default_compatible,
    bfd_default_scan,
    bfd_default_scan,
    0,
    0,
  }
  }
};
};
 
 
const bfd_arch_info_type bfd_sparc_arch =
const bfd_arch_info_type bfd_sparc_arch =
  {
  {
    32, /* bits in a word */
    32, /* bits in a word */
    32, /* bits in an address */
    32, /* bits in an address */
    8,  /* bits in a byte */
    8,  /* bits in a byte */
    bfd_arch_sparc,
    bfd_arch_sparc,
    bfd_mach_sparc,
    bfd_mach_sparc,
    "sparc",
    "sparc",
    "sparc",
    "sparc",
    3,
    3,
    TRUE, /* the default */
    TRUE, /* the default */
    bfd_default_compatible,
    bfd_default_compatible,
    bfd_default_scan,
    bfd_default_scan,
    &arch_info_struct[0],
    &arch_info_struct[0],
  };
  };
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.