]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - opcodes/arc-ext.h
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / opcodes / arc-ext.h
index fcce7e2bd4ea1c81ba52fa4bb5f4bdbf9a7b38ee..658ec8086cd89e811bcca7b61c5d9583c20ff666 100644 (file)
@@ -1,5 +1,5 @@
 /* ARC target-dependent stuff.  Extension data structures.
-   Copyright (C) 1995-2016 Free Software Foundation, Inc.
+   Copyright (C) 1995-2023 Free Software Foundation, Inc.
 
    This file is part of libopcodes.
 
 
 #include "opcode/arc.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define IGNORE_FIRST_OPD 1
 
 /* Define this if we do not want to encode instructions based on the
@@ -80,7 +84,7 @@ enum ExtReadWrite
     (OP)->opcode = CODE;                               \
     (OP)->mask   = MASK;                               \
     (OP)->cpu    = CPU;                                        \
-    (OP)->class  = ARITH;                              \
+    (OP)->insn_class  = ARITH;                         \
     (OP)->subclass = NONE;                             \
     memcpy ((OP)->operands, (ARG), MAX_INSN_ARGS);     \
     memcpy ((OP)->flags, (FLG), MAX_INSN_FLGS);                \
@@ -121,9 +125,9 @@ extern void build_ARC_extmap (bfd *);
 /* Accessor functions.  */
 extern enum ExtReadWrite arcExtMap_coreReadWrite (int);
 extern const char * arcExtMap_coreRegName (int);
-extern const char * arcExtMap_auxRegName (long);
+extern const char * arcExtMap_auxRegName (unsigned);
 extern const char * arcExtMap_condCodeName (int);
-extern const extInstruction_t *arcExtMap_insn (int, int);
+extern const extInstruction_t *arcExtMap_insn (int, unsigned long long);
 extern struct arc_opcode *arcExtMap_genOpcode (const extInstruction_t *,
                                               unsigned arc_target,
                                               const char **errmsg);
@@ -131,4 +135,8 @@ extern struct arc_opcode *arcExtMap_genOpcode (const extInstruction_t *,
 /* Dump function (for debugging).  */
 extern void dump_ARC_extmap (void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* ARC_EXTENSIONS_H */