X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fsh64-dis.c;h=7329aff2bc94ce66e6ee1cb65cd0aaa25991bfec;hb=defc8e2b3576c28fd5651763348ae23c18a94170;hp=9bd21afa3371ddc2c937cf239c0f24e4bd89e9f5;hpb=01f0fe5e0450edf168c1f612feb93cf588e4e7ea;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/sh64-dis.c b/opcodes/sh64-dis.c index 9bd21afa33..7329aff2bc 100644 --- a/opcodes/sh64-dis.c +++ b/opcodes/sh64-dis.c @@ -1,24 +1,26 @@ /* Disassemble SH64 instructions. - Copyright 2000, 2001, 2002, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2000-2017 Free Software Foundation, Inc. - This program is free software; you can redistribute it and/or modify + This file is part of the GNU opcodes library. + + This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; either version 3, or (at your option) + any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + It is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public + License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ - -#include + along with this file; see the file COPYING. If not, write to the + Free Software Foundation, 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ -#include "dis-asm.h" #include "sysdep.h" +#include +#include "disassemble.h" #include "sh64-opc.h" #include "libiberty.h" /* We need to refer to the ELF header structure. */ @@ -192,8 +194,6 @@ print_insn_shmedia (bfd_vma memaddr, struct disassemble_info *info) can get as .byte:s. */ if (status != 0) { - int i; - for (i = 0; i < 3; i++) { status = info->read_memory_func (memaddr + i, insn, 1, info);