X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fepiphany-dis.c;h=f55a2840d495303dad4c2fcc3c25b1ec6ce0f30a;hb=defc8e2b3576c28fd5651763348ae23c18a94170;hp=bd86f46219b7fd4bef6e2edaa377fb8b376823e2;hpb=cfb8c0921c8ab3be8e5e48ec31e472742c2d4104;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/epiphany-dis.c b/opcodes/epiphany-dis.c index bd86f46219..f55a2840d4 100644 --- a/opcodes/epiphany-dis.c +++ b/opcodes/epiphany-dis.c @@ -1,11 +1,11 @@ +/* DO NOT EDIT! -*- buffer-read-only: t -*- vi:set ro: */ /* Disassembler interface for targets using CGEN. -*- C -*- CGEN: Cpu tools GENerator THIS FILE IS MACHINE GENERATED WITH CGEN. - the resultant file is machine generated, cgen-dis.in isn't - Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007, - 2008, 2010 Free Software Foundation, Inc. + Copyright (C) 1996-2017 Free Software Foundation, Inc. This file is part of libopcodes. @@ -29,7 +29,7 @@ #include "sysdep.h" #include #include "ansidecl.h" -#include "dis-asm.h" +#include "disassemble.h" #include "bfd.h" #include "symcat.h" #include "libiberty.h" @@ -70,15 +70,16 @@ epiphany_print_insn (CGEN_CPU_DESC cd, bfd_vma pc, disassemble_info *info) int status; info->bytes_per_chunk = 2; + info->bytes_per_line = 4; /* Attempt to read the base part of the insn. */ - info->bytes_per_line = buflen = cd->base_insn_bitsize / 8; + buflen = cd->base_insn_bitsize / 8; status = (*info->read_memory_func) (pc, buf, buflen, info); /* Try again with the minimum part, if min < base. */ if (status != 0 && (cd->min_insn_bitsize < cd->base_insn_bitsize)) { - info->bytes_per_line = buflen = cd->min_insn_bitsize / 8; + buflen = cd->min_insn_bitsize / 8; status = (*info->read_memory_func) (pc, buf, buflen, info); } @@ -280,7 +281,7 @@ epiphany_cgen_print_operand (CGEN_CPU_DESC cd, } } -cgen_print_fn * const epiphany_cgen_print_handlers[] = +cgen_print_fn * const epiphany_cgen_print_handlers[] = { print_insn_normal, }; @@ -470,7 +471,7 @@ print_insn (CGEN_CPU_DESC cd, int length; unsigned long insn_value_cropped; -#ifdef CGEN_VALIDATE_INSN_SUPPORTED +#ifdef CGEN_VALIDATE_INSN_SUPPORTED /* Not needed as insn shouldn't be in hash lists if not supported. */ /* Supported by this cpu? */ if (! epiphany_cgen_insn_supported (cd, insn)) @@ -488,7 +489,7 @@ print_insn (CGEN_CPU_DESC cd, relevant part from the buffer. */ if ((unsigned) (CGEN_INSN_BITSIZE (insn) / 8) < buflen && (unsigned) (CGEN_INSN_BITSIZE (insn) / 8) <= sizeof (unsigned long)) - insn_value_cropped = bfd_get_bits (buf, CGEN_INSN_BITSIZE (insn), + insn_value_cropped = bfd_get_bits (buf, CGEN_INSN_BITSIZE (insn), info->endian == BFD_ENDIAN_BIG); else insn_value_cropped = insn_value; @@ -607,7 +608,7 @@ print_insn_epiphany (bfd_vma pc, disassemble_info *info) arch = info->arch; if (arch == bfd_arch_unknown) arch = CGEN_BFD_ARCH; - + /* There's no standard way to compute the machine or isa number so we leave it to the target. */ #ifdef CGEN_COMPUTE_MACH @@ -648,7 +649,7 @@ print_insn_epiphany (bfd_vma pc, disassemble_info *info) break; } } - } + } /* If we haven't initialized yet, initialize the opcode table. */ if (! cd)