S12Z: Move opcode header to public include directory.
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 11 Jul 2018 08:42:01 +0000 (10:42 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 18 Aug 2018 05:50:03 +0000 (07:50 +0200)
opcodes/
        * s12z.h: Delete.
* s12z-dis.c: Adjust path of included file.

include/
        * opcode/s12z.h: New file.

gas/
* config/tc-s12z.c: Adjust path of included file.

gas/config/tc-s12z.c
include/ChangeLog
include/opcode/s12z.h [new file with mode: 0644]
opcodes/ChangeLog
opcodes/s12z-dis.c
opcodes/s12z.h [deleted file]

index e024e7298b350d60f87e4039a7fed99c01b6e59e..736f062b80e74abed6589caf86a09313561c3366 100644 (file)
@@ -22,7 +22,7 @@
 #include "safe-ctype.h"
 #include "subsegs.h"
 #include "dwarf2dbg.h"
-#include "opcodes/s12z.h"
+#include "opcode/s12z.h"
 #include <stdint.h>
 #include <limits.h>
 #include <stdbool.h>
index 4b3d5493d4a1f78bebfdbf1903b2c5f897b56702..f663f9b937a5a618a9b540f004e11078780b51ec 100644 (file)
@@ -1,3 +1,7 @@
+2018-07-27  John Darrington <john@darrington.wattle.id.au>
+
+        * opcode/s12z.h: New file.
+
 2018-08-09  Richard Earnshaw  <rearnsha@arm.com>
 
        * elf/arm.h: Updated comments for e_flags definitions.
diff --git a/include/opcode/s12z.h b/include/opcode/s12z.h
new file mode 100644 (file)
index 0000000..7e38ac5
--- /dev/null
@@ -0,0 +1,71 @@
+#ifndef S12Z_H
+#define S12Z_H
+
+/* This byte is used to prefix instructions in "page 2" of the opcode
+   space */
+#define PAGE2_PREBYTE (0x1b)
+
+struct reg
+{
+  char      *name;   /* The canonical name of the register */
+  int       bytes;   /* its size, in bytes */
+};
+
+
+/* How many registers do we have.  Actually there are only 13,
+   because CCL and CCH are the low and high bytes of CCW.  But
+   for assemnbly / disassembly purposes they are considered
+   distinct registers. */
+#define S12Z_N_REGISTERS 15
+
+extern const struct reg registers[S12Z_N_REGISTERS];
+
+enum {
+    REG_D2 = 0,
+    REG_D3,
+    REG_D4,
+    REG_D5,
+    REG_D0,
+    REG_D1,
+    REG_D6,
+    REG_D7,
+    REG_X,
+    REG_Y,
+    REG_S,
+    REG_P,
+    REG_CCH,
+    REG_CCL,
+    REG_CCW
+  };
+
+/* Any of the registers d0, d1, ... d7 */
+#define REG_BIT_Dn \
+((0x1U << REG_D2) | \
+ (0x1U << REG_D3) | \
+ (0x1U << REG_D4) | \
+ (0x1U << REG_D5) | \
+ (0x1U << REG_D6) | \
+ (0x1U << REG_D7) | \
+ (0x1U << REG_D0) | \
+ (0x1U << REG_D1))
+
+/* Any of the registers x, y or z */
+#define REG_BIT_XYS \
+((0x1U << REG_X) | \
+ (0x1U << REG_Y) | \
+ (0x1U << REG_S))
+
+/* Any of the registers x, y, z or p */
+#define REG_BIT_XYSP \
+((0x1U << REG_X)  | \
+ (0x1U << REG_Y)  | \
+ (0x1U << REG_S)  | \
+ (0x1U << REG_P))
+
+/* The x register or the y register */
+#define REG_BIT_XY \
+((0x1U << REG_X) | \
+ (0x1U << REG_Y))
+
+
+#endif
index 78b92696a431214e74b9ff77f74532a3f8035123..8776fbd8a9917cd20b913f4b8d6fbab1511d230f 100644 (file)
@@ -1,3 +1,7 @@
+2018-07-28  John Darrington <john@darrington.wattle.id.au>
+
+        * s12z.h: Delete.
+
 2018-08-14  H.J. Lu  <hongjiu.lu@intel.com>
 
        * i386-dis.c (OP_E_memory): In 64-bit mode, display eiz for
index 47f861639033df3c81c9db3f514746906445fd78..7130908a01bd74ece565439c168be8a96b40ab18 100644 (file)
@@ -24,7 +24,7 @@
 #include <stdbool.h>
 #include <assert.h>
 
-#include "s12z.h"
+#include "opcode/s12z.h"
 
 #include "bfd.h"
 #include "dis-asm.h"
diff --git a/opcodes/s12z.h b/opcodes/s12z.h
deleted file mode 100644 (file)
index 7e38ac5..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-#ifndef S12Z_H
-#define S12Z_H
-
-/* This byte is used to prefix instructions in "page 2" of the opcode
-   space */
-#define PAGE2_PREBYTE (0x1b)
-
-struct reg
-{
-  char      *name;   /* The canonical name of the register */
-  int       bytes;   /* its size, in bytes */
-};
-
-
-/* How many registers do we have.  Actually there are only 13,
-   because CCL and CCH are the low and high bytes of CCW.  But
-   for assemnbly / disassembly purposes they are considered
-   distinct registers. */
-#define S12Z_N_REGISTERS 15
-
-extern const struct reg registers[S12Z_N_REGISTERS];
-
-enum {
-    REG_D2 = 0,
-    REG_D3,
-    REG_D4,
-    REG_D5,
-    REG_D0,
-    REG_D1,
-    REG_D6,
-    REG_D7,
-    REG_X,
-    REG_Y,
-    REG_S,
-    REG_P,
-    REG_CCH,
-    REG_CCL,
-    REG_CCW
-  };
-
-/* Any of the registers d0, d1, ... d7 */
-#define REG_BIT_Dn \
-((0x1U << REG_D2) | \
- (0x1U << REG_D3) | \
- (0x1U << REG_D4) | \
- (0x1U << REG_D5) | \
- (0x1U << REG_D6) | \
- (0x1U << REG_D7) | \
- (0x1U << REG_D0) | \
- (0x1U << REG_D1))
-
-/* Any of the registers x, y or z */
-#define REG_BIT_XYS \
-((0x1U << REG_X) | \
- (0x1U << REG_Y) | \
- (0x1U << REG_S))
-
-/* Any of the registers x, y, z or p */
-#define REG_BIT_XYSP \
-((0x1U << REG_X)  | \
- (0x1U << REG_Y)  | \
- (0x1U << REG_S)  | \
- (0x1U << REG_P))
-
-/* The x register or the y register */
-#define REG_BIT_XY \
-((0x1U << REG_X) | \
- (0x1U << REG_Y))
-
-
-#endif