MIPS16/opcodes: Fix off-by-one indentation in `print_mips16_insn_arg'
authorMaciej W. Rozycki <macro@imgtec.com>
Thu, 8 Dec 2016 23:29:37 +0000 (23:29 +0000)
committerMaciej W. Rozycki <macro@imgtec.com>
Thu, 8 Dec 2016 23:32:29 +0000 (23:32 +0000)
opcodes/
* mips-dis.c (print_mips16_insn_arg): Remove extraneous
indentation space across.

opcodes/ChangeLog
opcodes/mips-dis.c

index 70f91502c9c5bc70eda3cae0e9624a33375139f6..1e5ca723106d0eef0898993f9f1ac5c2745b747a 100644 (file)
@@ -1,3 +1,8 @@
+2016-12-08  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * mips-dis.c (print_mips16_insn_arg): Remove extraneous
+       indentation space across.
+
 2016-12-08  Maciej W. Rozycki  <macro@imgtec.com>
 
        * mips-dis.c (print_mips16_insn_arg): Avoid delay-slot
index 19d0366e8f39819c7c44c160774780c842eb358f..c23e369972b0c9a1a93cfc0a7566a9d1b857ef42 100644 (file)
@@ -1914,36 +1914,36 @@ print_mips16_insn_arg (struct disassemble_info *info,
          if (!pcrel_op->include_isa_bit && use_extend)
            baseaddr = memaddr - 2;
          else if (!pcrel_op->include_isa_bit)
-            {
-              bfd_byte buffer[2];
-
-              /* If this instruction is in the delay slot of a JAL/JALX
-                 instruction, the base address is the address of the
-                 JAL/JALX instruction.  If it is in the delay slot of
-                 a JR/JALR instruction, the base address is the address
-                 of the JR/JALR instruction.  This test is unreliable:
-                 we have no way of knowing whether the previous word is
-                 instruction or data.  */
-              if (info->read_memory_func (memaddr - 4, buffer, 2, info) == 0
-                  && (((info->endian == BFD_ENDIAN_BIG
-                        ? bfd_getb16 (buffer)
-                        : bfd_getl16 (buffer))
-                       & 0xf800) == 0x1800))
-                baseaddr = memaddr - 4;
-              else if (info->read_memory_func (memaddr - 2, buffer, 2,
-                                               info) == 0
-                       && (((info->endian == BFD_ENDIAN_BIG
-                             ? bfd_getb16 (buffer)
-                             : bfd_getl16 (buffer))
-                            & 0xf89f) == 0xe800)
-                       && (((info->endian == BFD_ENDIAN_BIG
-                             ? bfd_getb16 (buffer)
-                             : bfd_getl16 (buffer))
-                            & 0x0060) != 0x0060))
-                baseaddr = memaddr - 2;
-              else
-                baseaddr = memaddr;
-            }
+           {
+             bfd_byte buffer[2];
+
+             /* If this instruction is in the delay slot of a JAL/JALX
+                instruction, the base address is the address of the
+                JAL/JALX instruction.  If it is in the delay slot of
+                a JR/JALR instruction, the base address is the address
+                of the JR/JALR instruction.  This test is unreliable:
+                we have no way of knowing whether the previous word is
+                instruction or data.  */
+             if (info->read_memory_func (memaddr - 4, buffer, 2, info) == 0
+                 && (((info->endian == BFD_ENDIAN_BIG
+                       ? bfd_getb16 (buffer)
+                       : bfd_getl16 (buffer))
+                      & 0xf800) == 0x1800))
+               baseaddr = memaddr - 4;
+             else if (info->read_memory_func (memaddr - 2, buffer, 2,
+                                              info) == 0
+                      && (((info->endian == BFD_ENDIAN_BIG
+                            ? bfd_getb16 (buffer)
+                            : bfd_getl16 (buffer))
+                           & 0xf89f) == 0xe800)
+                      && (((info->endian == BFD_ENDIAN_BIG
+                            ? bfd_getb16 (buffer)
+                            : bfd_getl16 (buffer))
+                           & 0x0060) != 0x0060))
+               baseaddr = memaddr - 2;
+             else
+               baseaddr = memaddr;
+           }
        }
 
       print_insn_arg (info, state, opcode, operand, baseaddr + 1, uval);
This page took 0.030025 seconds and 4 git commands to generate.