X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Ftic6x-dis.c;h=51f009d36f71ebd03175d72def9101226d625e14;hb=7ca9b62a2b63ae04d554053c2a2053d13a9d8c92;hp=48046b2df5409351f6a69a4032f5468c1415fe46;hpb=1b7e3d2fb7036ce6f9d74e32dc052518f5cd45b6;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/tic6x-dis.c b/opcodes/tic6x-dis.c index 48046b2df5..51f009d36f 100644 --- a/opcodes/tic6x-dis.c +++ b/opcodes/tic6x-dis.c @@ -1,5 +1,5 @@ /* TI C6X disassembler. - Copyright (C) 2010-2017 Free Software Foundation, Inc. + Copyright (C) 2010-2020 Free Software Foundation, Inc. Contributed by Joseph Myers Bernd Schmidt @@ -21,7 +21,7 @@ MA 02110-1301, USA. */ #include "sysdep.h" -#include "dis-asm.h" +#include "disassemble.h" #include "opcode/tic6x.h" #include "libiberty.h" @@ -163,9 +163,9 @@ static unsigned int tic6x_extract_32 (unsigned char *p, struct disassemble_info *info) { if (info->endian == BFD_ENDIAN_LITTLE) - return (p[0]) | (p[1] << 8) | (p[2] << 16) | (p[3] << 24); + return p[0] | (p[1] << 8) | (p[2] << 16) | ((unsigned) p[3] << 24); else - return (p[3]) | (p[2] << 8) | (p[1] << 16) | (p[0] << 24); + return p[3] | (p[2] << 8) | (p[1] << 16) | ((unsigned) p[0] << 24); } /* Extract a 16-bit value read from the instruction stream. */