+2014-08-14 Mike Frysinger <vapier@gentoo.org>
+
+ * bfin-dis.c (struct private): Add iw0.
+ (_print_insn_bfin): Assign iw0 to priv.iw0.
+ (print_insn_bfin): Drop ifetch and use priv.iw0.
+
2014-08-13 Mike Frysinger <vapier@gentoo.org>
* bfin-dis.c (comment, parallel): Move from global scope ...
struct private
{
+ TIword iw0;
int comment, parallel;
};
if (ifetch (pc, outf, &iw0))
return -1;
+ priv->iw0 = iw0;
if ((iw0 & 0xc000) == 0xc000)
{
print_insn_bfin (bfd_vma pc, disassemble_info *outf)
{
struct private priv;
- TIword iw0;
int count;
- if (ifetch (pc, outf, &iw0) == -1)
- return -1;
-
priv.parallel = 0;
priv.comment = 0;
outf->private_data = &priv;
/* Proper display of multiple issue instructions. */
- if (count == 4 && (iw0 & 0xc000) == 0xc000 && (iw0 & BIT_MULTI_INS)
- && ((iw0 & 0xe800) != 0xe800 /* Not Linkage. */ ))
+ if (count == 4 && (priv.iw0 & 0xc000) == 0xc000 && (priv.iw0 & BIT_MULTI_INS)
+ && ((priv.iw0 & 0xe800) != 0xe800 /* Not Linkage. */ ))
{
int legal = 1;
int len;