Add load-link, store-conditional paired EVA instructions
[deliverable/binutils-gdb.git] / opcodes / v850-dis.c
index 0c50e5103035e7ce81216fb36cf87cad8c8877f8..84cf2d39a6ecd9927c414ccfdde28de69f89c831 100644 (file)
@@ -1,5 +1,5 @@
 /* Disassemble V850 instructions.
-   Copyright (C) 1996-2015 Free Software Foundation, Inc.
+   Copyright (C) 1996-2019 Free Software Foundation, Inc.
 
    This file is part of the GNU opcodes library.
 
@@ -23,7 +23,7 @@
 #include <stdio.h>
 #include <string.h>
 #include "opcode/v850.h"
-#include "dis-asm.h"
+#include "disassemble.h"
 #include "opintl.h"
 
 static const char *const v850_reg_names[] =
@@ -450,7 +450,8 @@ disassemble (bfd_vma memaddr,
                      case 0xffe00001: regs = list12_regs; break;
                      default:
                        /* xgettext:c-format */
-                       fprintf (stderr, _("unknown operand shift: %x\n"), operand->shift);
+                       opcodes_error_handler (_("unknown operand shift: %x"),
+                                              operand->shift);
                        abort ();
                      }
 
@@ -460,10 +461,17 @@ disassemble (bfd_vma memaddr,
                          {
                            switch (regs[ i ])
                              {
-                             default: mask |= (1 << regs[ i ]); break;
+                             default:
+                               mask |= (1 << regs[ i ]);
+                               break;
+                             case 0:
                                /* xgettext:c-format */
-                             case 0:  fprintf (stderr, _("unknown reg: %d\n"), i ); abort ();
-                             case -1: pc = 1; break;
+                               opcodes_error_handler (_("unknown reg: %d"), i);
+                               abort ();
+                               break;
+                             case -1:
+                               pc = 1;
+                               break;
                              }
                          }
                      }
This page took 0.024062 seconds and 4 git commands to generate.