2010-09-27 Tejas Belagod <tejas.belagod@arm.com>
[deliverable/binutils-gdb.git] / opcodes / arm-dis.c
index 3dfbf5c5415e7219b4f31a78ff8842f9bbd14304..b8d02e55dce38e3d8732ef6cf716c44c2e79cc4f 100644 (file)
@@ -1910,8 +1910,12 @@ print_insn_coprocessor (bfd_vma pc,
                    if (rn == 15 && (PRE_BIT_SET || WRITEBACK_BIT_SET))
                      {
                        func (stream, "\t; ");
-                       info->print_address_func (offset + pc
-                                                 + info->bytes_per_chunk * 2, info);
+                       /* For unaligned PCs, apply off-by-alignment
+                          correction.  */
+                       info->print_address_func (offset + pc 
+                                                 + info->bytes_per_chunk * 2
+                                                 - (pc & 3),
+                                                 info);
                      }
                  }
                  break;
This page took 0.029707 seconds and 4 git commands to generate.