X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=opcodes%2Ftic54x-dis.c;h=d8b80a3bf7dbb45492e955ba14ba917650c5906f;hb=4b4477b52eee60ddadd59c36ffd778bbd9ab1c07;hp=9811722d3bd0694a29959b5415d7fb4309b8aebe;hpb=9a176a4afca8d6f75ba63e8f29e662b4dd89bdc7;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/tic54x-dis.c b/opcodes/tic54x-dis.c index 9811722d3b..d8b80a3bf7 100644 --- a/opcodes/tic54x-dis.c +++ b/opcodes/tic54x-dis.c @@ -1,6 +1,5 @@ /* Disassembly routines for TMS320C54X architecture - Copyright 1999, 2000, 2001, 2005, 2007, 2009, 2012 - Free Software Foundation, Inc. + Copyright (C) 1999-2019 Free Software Foundation, Inc. Contributed by Timothy Wall (twall@cygnus.com) This file is part of the GNU opcodes library. @@ -24,7 +23,7 @@ #include #include #include -#include "dis-asm.h" +#include "disassemble.h" #include "opcode/tic54x.h" #include "coff/tic54x.h" @@ -395,8 +394,7 @@ print_instruction (disassemble_info *info, break; } case OP_k5: - sprintf (operand[i], "#%d", - (int) (((signed char) opcode & 0x1F) << 3) >> 3); + sprintf (operand[i], "#%d", ((opcode & 0x1F) ^ 0x10) - 0x10); info->fprintf_func (info->stream, "%s%s", comma, operand[i]); break; case OP_k8u: @@ -531,7 +529,7 @@ sprint_mmr (disassemble_info *info ATTRIBUTE_UNUSED, char buf[], int mmr) { - symbol *reg = (symbol *) mmregs; + tic54x_symbol *reg = (tic54x_symbol *) mmregs; while (reg->name != NULL) { if (mmr == reg->value)