aboutsummaryrefslogtreecommitdiff
path: root/opcodes/bfin-dis.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-24 05:27:39 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-24 05:27:39 +0000
commit67171547aa1f03b9232dbdd34fa1aff327c52722 (patch)
tree59cd4205c414e599c145a3f9f06182443eba5fd6 /opcodes/bfin-dis.c
parent6d7e72e511f75ac9dd8ecd9fd0521f37cabf1cc0 (diff)
downloadgdb-67171547aa1f03b9232dbdd34fa1aff327c52722.zip
gdb-67171547aa1f03b9232dbdd34fa1aff327c52722.tar.gz
gdb-67171547aa1f03b9232dbdd34fa1aff327c52722.tar.bz2
opcodes: blackfin: ignore (M) on MAC0-only dsp mac funcs
If the MAC1 part of the insn is disabled, then the (M) flag is ignored. Rather than include it in the decode, move the MM clearing to the MAC0 portion of the code. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'opcodes/bfin-dis.c')
-rw-r--r--opcodes/bfin-dis.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/opcodes/bfin-dis.c b/opcodes/bfin-dis.c
index 2357a2a..130dfc7 100644
--- a/opcodes/bfin-dis.c
+++ b/opcodes/bfin-dis.c
@@ -3010,13 +3010,16 @@ decode_dsp32mac_0 (TIword iw0, TIword iw1, disassemble_info *outf)
{
if (MM)
OUTS (outf, " (M)");
- MM = 0;
OUTS (outf, ", ");
}
}
if (w0 == 1 || op0 != 3)
{
+ /* Clear MM option since it only matters for MAC1, and if we made
+ it this far, we've already shown it or we want to ignore it. */
+ MM = 0;
+
if (w0)
OUTS (outf, P ? dregs (dst) : dregs_lo (dst));