PT_GNU_MBIND section mapping
[deliverable/binutils-gdb.git] / include / opcode / d10v.h
index c667331c563885bf5c851285df362cf097e5940a..d2ca6f1f906266af5416f1600728c2716380d665 100644 (file)
@@ -1,26 +1,31 @@
 /* d10v.h -- Header file for D10V opcode table
-   Copyright 1996 Free Software Foundation, Inc.
+   Copyright (C) 1996-2019 Free Software Foundation, Inc.
    Written by Martin Hunt (hunt@cygnus.com), Cygnus Support
 
-This file is part of GDB, GAS, and the GNU binutils.
+   This file is part of GDB, GAS, and the GNU binutils.
 
-GDB, GAS, and the GNU binutils are free software; you can redistribute
-them and/or modify them under the terms of the GNU General Public
-License as published by the Free Software Foundation; either version
-1, or (at your option) any later version.
+   GDB, GAS, and the GNU binutils are free software; you can redistribute
+   them and/or modify them under the terms of the GNU General Public
+   License as published by the Free Software Foundation; either version 3,
+   or (at your option) any later version.
 
-GDB, GAS, and the GNU binutils are distributed in the hope that they
-will be useful, but WITHOUT ANY WARRANTY; without even the implied
-warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
-the GNU General Public License for more details.
+   GDB, GAS, and the GNU binutils are distributed in the hope that they
+   will be useful, but WITHOUT ANY WARRANTY; without even the implied
+   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
+   the GNU General Public License for more details.
 
-You should have received a copy of the GNU General Public License
-along with this file; see the file COPYING.  If not, write to the Free
-Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
+   You should have received a copy of the GNU General Public License
+   along with this file; see the file COPYING3.  If not, write to the Free
+   Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
+   MA 02110-1301, USA.  */
 
 #ifndef D10V_H
 #define D10V_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Format Specifier */
 #define FM00   0
 #define FM01   0x40000000
@@ -65,11 +70,20 @@ struct d10v_opcode
 #define BOTH   3
 
   /* execution type; parallel or sequential */
+  /* this field is used to decide if two instructions */
+  /* can be executed in parallel */
   int exec_type;
 #define PARONLY 1      /* parallel only */
 #define SEQ    2       /* must be sequential */
-#define PAR    3       /* may be parallel */
-#define BRANCH_LINK 4  /* subroutine call.  sequential and aligned */
+#define PAR    4       /* may be parallel */
+#define BRANCH_LINK 8  /* subroutine call.  must be aligned */
+#define RMEM     16    /* reads memory */
+#define WMEM     32    /* writes memory */
+#define RF0      64    /* reads f0 */
+#define WF0     128    /* modifies f0 */
+#define WCAR    256    /* write Carry */
+#define BRANCH  512    /* branch, no link */
+#define ALONE  1024    /* short but pack with a NOP if on asm line alone */
 
   /* the opcode */
   long opcode;
@@ -140,20 +154,45 @@ extern const struct d10v_operand d10v_operands[];
 /* @(  */
 #define OPERAND_ATPAR  (0x200)
 
-/* accumulator */
-#define OPERAND_ACC    (0x400)
+/* accumulator 0 */
+#define OPERAND_ACC0   (0x400)
+
+/* accumulator 1 */
+#define OPERAND_ACC1   (0x800)
+
+/* f0 / f1 flag register */
+#define OPERAND_FFLAG  (0x1000)
 
-/* flag register */
-#define OPERAND_FLAG   (0x800)
+/* flag register */
+#define OPERAND_CFLAG  (0x2000)
 
 /* control register  */
-#define OPERAND_CONTROL        (0x1000)
+#define OPERAND_CONTROL        (0x4000)
 
 /* predecrement mode '@-sp'  */
-#define OPERAND_ATMINUS        (0x2000)
+#define OPERAND_ATMINUS        (0x8000)
 
 /* signed number */
-#define OPERAND_SIGNED (0x4000)
+#define OPERAND_SIGNED (0x10000)
+
+/* special accumulator shifts need a 4-bit number */
+/* 1 <= x <= 16 */
+#define OPERAND_SHIFT  (0x20000)
+
+/* general purpose register */
+#define OPERAND_GPR    (0x40000)
+
+/* special imm3 values with range restricted to -2 <= imm3 <= 3 */
+/* needed for rac/rachi */
+#define RESTRICTED_NUM3        (0x80000)
+
+/* Pre-decrement is only supported for SP.  */
+#define OPERAND_SP      (0x100000)
+
+/* Post-decrement is not supported for SP.  Like OPERAND_EVEN, and
+   unlike OPERAND_SP, this flag doesn't prevent the instruction from
+   matching, it only fails validation later on.  */
+#define OPERAND_NOSP    (0x200000)
 
 /* Structure to hold information about predefined registers.  */
 struct pd_reg
@@ -163,11 +202,15 @@ struct pd_reg
   int value;
 };
 
-extern const struct pd_reg pre_defined_registers[];
-int reg_name_cnt();
+extern const struct pd_reg d10v_predefined_registers[];
+int d10v_reg_name_cnt (void);
 
 /* an expressionS only has one register type, so we fake it */
 /* by setting high bits to indicate type */
 #define REGISTER_MASK  0xFF
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* D10V_H */
This page took 0.024498 seconds and 4 git commands to generate.