summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-24 05:27:38 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-24 05:27:38 +0000
commit9c4bf6f3ddcba39cbc39ac9fb9373c5b1ba7987a (patch)
tree4a675872be3b4b40c0c73052e31d051c3b1dc991
parent54ad4062b17b7ca4a0f6d0039cb7da16ede1a60a (diff)
downloadgdb-9c4bf6f3ddcba39cbc39ac9fb9373c5b1ba7987a.tar.gz
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>
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/bfin-dis.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 6ef45255f02..734f824cd41 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2011-03-24 Mike Frysinger <vapier@gentoo.org>
+
+ * bfin-dis.c (decode_dsp32mac_0): Move MM zeroing down to MAC0 logic.
+
2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
* avr-dis.c (avr_operand): Add opcode_str parameter. Check for
diff --git a/opcodes/bfin-dis.c b/opcodes/bfin-dis.c
index 2357a2a45de..130dfc7719e 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));