aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-11-17 09:04:00 -0800
committerH.J. Lu <hjl.tools@gmail.com>2022-11-17 09:06:10 -0800
commit3bfea8baf6168b58e9ecdf2cd7f3e9b41f1815c7 (patch)
tree22120de3d4dd6304996480824c6eb102ba4d90d3 /opcodes
parentf68eca29d3b3e551a45a1bb02b05a0b3a4856f59 (diff)
downloadbinutils-3bfea8baf6168b58e9ecdf2cd7f3e9b41f1815c7.zip
binutils-3bfea8baf6168b58e9ecdf2cd7f3e9b41f1815c7.tar.gz
binutils-3bfea8baf6168b58e9ecdf2cd7f3e9b41f1815c7.tar.bz2
i386: Move i386_seg_prefixes to gas
gas/ * config/tc-i386.c (i386_seg_prefixes): New. Moved from opcodes. opcodes/ * i386-opc.c (i386_seg_prefixes): Removed. * i386-opc.h (i386_seg_prefixes): Likewise.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/i386-opc.c10
-rw-r--r--opcodes/i386-opc.h1
2 files changed, 0 insertions, 11 deletions
diff --git a/opcodes/i386-opc.c b/opcodes/i386-opc.c
index 66566bd..729c229 100644
--- a/opcodes/i386-opc.c
+++ b/opcodes/i386-opc.c
@@ -22,13 +22,3 @@
#include "libiberty.h"
#include "i386-opc.h"
#include "i386-tbl.h"
-
-/* To be indexed by segment register number. */
-const unsigned char i386_seg_prefixes[] = {
- ES_PREFIX_OPCODE,
- CS_PREFIX_OPCODE,
- SS_PREFIX_OPCODE,
- DS_PREFIX_OPCODE,
- FS_PREFIX_OPCODE,
- GS_PREFIX_OPCODE
-};
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h
index 168729f..459268f 100644
--- a/opcodes/i386-opc.h
+++ b/opcodes/i386-opc.h
@@ -1014,4 +1014,3 @@ reg_entry;
extern const reg_entry i386_regtab[];
extern const unsigned int i386_regtab_size;
-extern const unsigned char i386_seg_prefixes[6];