]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - include/opcode/v850.h
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / include / opcode / v850.h
index d19ff80f77457f1b0d11f29c4441694d859a8d4c..e7b5402b8fb2e22f440d58e30d7df815ff19a7b0 100644 (file)
@@ -1,5 +1,5 @@
 /* v850.h -- Header file for NEC V850 opcode table
-   Copyright (C) 1996-2014 Free Software Foundation, Inc.
+   Copyright (C) 1996-2021 Free Software Foundation, Inc.
    Written by J.T. Conklin, Cygnus Support
 
    This file is part of GDB, GAS, and the GNU binutils.
 #ifndef V850_H
 #define V850_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* The opcode table is an array of struct v850_opcode.  */
 
 struct v850_opcode
@@ -129,7 +133,7 @@ struct v850_operand
      operand value is legal, *ERRMSG will be unchanged (most operands
      can accept any value).  */
   unsigned long (* insert)
-    (unsigned long instruction, long op, const char ** errmsg);
+    (unsigned long instruction, unsigned long op, const char ** errmsg);
 
   /* Extraction function.  This is used by the disassembler.  To
      extract this operand type from an instruction, check this field.
@@ -226,10 +230,10 @@ extern const struct v850_operand v850_operands[];
 /* The operand has '%' prefix.  */
 #define V850_OPERAND_PERCENT   0x200000
 
-/* This operand is a cache oparation.  */
+/* This operand is a cache operation.  */
 #define V850_OPERAND_CACHEOP   0x400000
 
-/* This operand is a prefetch oparation.  */
+/* This operand is a prefetch operation.  */
 #define V850_OPERAND_PREFOP    0x800000
 
 /* A PC-relative displacement where a positive value indicates a backwards displacement.  */
@@ -237,4 +241,8 @@ extern const struct v850_operand v850_operands[];
 
 extern int v850_msg_is_out_of_range (const char *);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* V850_H */