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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [cpu/] [sh.opc] - Diff between revs 156 and 816

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

Rev 156 Rev 816
/* SHmedia opcode support.  -*- C -*-
/* SHmedia opcode support.  -*- C -*-
   Copyright 2000, 2005, 2007 Free Software Foundation, Inc.
   Copyright 2000, 2005, 2007 Free Software Foundation, Inc.
   Contributed by Red Hat Inc; developed under contract from Hitachi
   Contributed by Red Hat Inc; developed under contract from Hitachi
   Semiconductor (America) Inc.
   Semiconductor (America) Inc.
   This file is part of the GNU Binutils.
   This file is part of the GNU Binutils.
   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.  */
/* This file is an addendum to sh-media.cpu.  Heavy use of C code isn't
/* This file is an addendum to sh-media.cpu.  Heavy use of C code isn't
   appropriate in .cpu files, so it resides here.  This especially applies
   appropriate in .cpu files, so it resides here.  This especially applies
   to assembly/disassembly where parsing/printing can be quite involved.
   to assembly/disassembly where parsing/printing can be quite involved.
   Such things aren't really part of the specification of the cpu, per se,
   Such things aren't really part of the specification of the cpu, per se,
   so .cpu files provide the general framework and .opc files handle the
   so .cpu files provide the general framework and .opc files handle the
   nitty-gritty details as necessary.
   nitty-gritty details as necessary.
   Each section is delimited with start and end markers.
   Each section is delimited with start and end markers.
   -opc.h additions use: "-- opc.h"
   -opc.h additions use: "-- opc.h"
   -opc.c additions use: "-- opc.c"
   -opc.c additions use: "-- opc.c"
   -asm.c additions use: "-- asm.c"
   -asm.c additions use: "-- asm.c"
   -dis.c additions use: "-- dis.c"
   -dis.c additions use: "-- dis.c"
   -ibd.h additions use: "-- ibd.h"  */
   -ibd.h additions use: "-- ibd.h"  */


/* -- opc.h */
/* -- opc.h */
/* Allows reason codes to be output when assembler errors occur.  */
/* Allows reason codes to be output when assembler errors occur.  */
#define CGEN_VERBOSE_ASSEMBLER_ERRORS
#define CGEN_VERBOSE_ASSEMBLER_ERRORS
/* Override disassembly hashing - there are variable bits in the top
/* Override disassembly hashing - there are variable bits in the top
   byte of these instructions.  */
   byte of these instructions.  */
#define CGEN_DIS_HASH_SIZE 8
#define CGEN_DIS_HASH_SIZE 8
#define CGEN_DIS_HASH(buf,value) (((* (unsigned char*) (buf)) >> 6) % CGEN_DIS_HASH_SIZE)
#define CGEN_DIS_HASH(buf,value) (((* (unsigned char*) (buf)) >> 6) % CGEN_DIS_HASH_SIZE)
/* -- asm.c */
/* -- asm.c */
static const char *
static const char *
parse_fsd (CGEN_CPU_DESC cd,
parse_fsd (CGEN_CPU_DESC cd,
           const char ** strp,
           const char ** strp,
           int opindex,
           int opindex,
           long * valuep)
           long * valuep)
{
{
  abort ();
  abort ();
}
}
/* -- dis.c */
/* -- dis.c */
static void
static void
print_likely (CGEN_CPU_DESC cd,
print_likely (CGEN_CPU_DESC cd,
              void * dis_info,
              void * dis_info,
              long value,
              long value,
              unsigned int attrs,
              unsigned int attrs,
              bfd_vma pc,
              bfd_vma pc,
              int length)
              int length)
{
{
  disassemble_info *info = (disassemble_info *) dis_info;
  disassemble_info *info = (disassemble_info *) dis_info;
  (*info->fprintf_func) (info->stream, (value) ? "/l" : "/u");
  (*info->fprintf_func) (info->stream, (value) ? "/l" : "/u");
}
}
/* -- */
/* -- */
 
 

powered by: WebSVN 2.1.0

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