X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fnfp-dis.c;h=aac3903899cb0585eaeb5aa727b13df79742e6e8;hb=50d036364fb2a71b3ac9a0b0cdbe58296832a1b2;hp=e501b14959e95441d1fba5479730b58beb5937bd;hpb=29e0f0a144fcabb6fa088c58b49e5924d7c43967;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/nfp-dis.c b/opcodes/nfp-dis.c index e501b14959..aac3903899 100644 --- a/opcodes/nfp-dis.c +++ b/opcodes/nfp-dis.c @@ -1,5 +1,5 @@ /* Print NFP instructions for objdump. - Copyright (C) 2017-2018 Free Software Foundation, Inc. + Copyright (C) 2017-2020 Free Software Foundation, Inc. Contributed by Francois H. Theron This file is part of the GNU opcodes library. @@ -1325,8 +1325,8 @@ nfp_me27_28_print_alu (uint64_t instr, unsigned int pred_cc, case 18: do_close_bracket = 0; dinfo->fprintf_func (dinfo->stream, "crc_%s[", - _BTST (instr, 3) ? "le" : "be"); - if (!nfp_me27_28_crc_op[_BF (instr, 7, 5)]) + _BTST (srcA, 3) ? "le" : "be"); + if (!nfp_me27_28_crc_op[_BF (srcA, 7, 5)]) { dinfo->fprintf_func (dinfo->stream, _(", , ")); err = TRUE; @@ -1334,7 +1334,7 @@ nfp_me27_28_print_alu (uint64_t instr, unsigned int pred_cc, else { dinfo->fprintf_func (dinfo->stream, "%s, ", - nfp_me27_28_crc_op[_BF (instr, 7, 5)]); + nfp_me27_28_crc_op[_BF (srcA, 7, 5)]); } /* Dest operand. */ @@ -1351,10 +1351,10 @@ nfp_me27_28_print_alu (uint64_t instr, unsigned int pred_cc, num_ctx, src_lmext, dinfo); dinfo->fprintf_func (dinfo->stream, "]"); - if (_BF (instr, 2, 0)) + if (_BF (srcA, 2, 0)) dinfo->fprintf_func (dinfo->stream, ", %s", - nfp_me27_28_crc_bytes[_BF (instr, 2, 0)]); - if (_BTST (instr, 4)) + nfp_me27_28_crc_bytes[_BF (srcA, 2, 0)]); + if (_BTST (srcA, 4)) dinfo->fprintf_func (dinfo->stream, ", bit_swap"); break; @@ -2958,7 +2958,7 @@ print_insn_nfp (bfd_vma addr, struct disassemble_info *dinfo) err = _print_instrs (addr, dinfo, &opts); -end: + end: if (err != 8) dinfo->fprintf_func (dinfo->stream, "\t # ERROR"); if (err == _NFP_ERR_CONT) @@ -2976,7 +2976,7 @@ with the -M switch (multiple options should be separated by commas):\n")); fprintf (stream, _("\n\ no-pc Don't print program counter prefix.\n\ ctx4 Force disassembly using 4-context mode.\n\ - ctx8 Force 8-context mode, takes presedence.\"")); + ctx8 Force 8-context mode, takes precedence.")); fprintf (stream, _("\n")); }