mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
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.
This commit is contained in:
@ -464,6 +464,16 @@ static const struct RC_name RC_NamesTable[] =
|
|||||||
{ saeonly, STRING_COMMA_LEN ("sae") },
|
{ saeonly, STRING_COMMA_LEN ("sae") },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* To be indexed by segment register number. */
|
||||||
|
static const unsigned char i386_seg_prefixes[] = {
|
||||||
|
ES_PREFIX_OPCODE,
|
||||||
|
CS_PREFIX_OPCODE,
|
||||||
|
SS_PREFIX_OPCODE,
|
||||||
|
DS_PREFIX_OPCODE,
|
||||||
|
FS_PREFIX_OPCODE,
|
||||||
|
GS_PREFIX_OPCODE
|
||||||
|
};
|
||||||
|
|
||||||
/* List of chars besides those in app.c:symbol_chars that can start an
|
/* List of chars besides those in app.c:symbol_chars that can start an
|
||||||
operand. Used to prevent the scrubber eating vital white-space. */
|
operand. Used to prevent the scrubber eating vital white-space. */
|
||||||
const char extra_symbol_chars[] = "*%-([{}"
|
const char extra_symbol_chars[] = "*%-([{}"
|
||||||
|
@ -22,13 +22,3 @@
|
|||||||
#include "libiberty.h"
|
#include "libiberty.h"
|
||||||
#include "i386-opc.h"
|
#include "i386-opc.h"
|
||||||
#include "i386-tbl.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
|
|
||||||
};
|
|
||||||
|
@ -1014,4 +1014,3 @@ reg_entry;
|
|||||||
|
|
||||||
extern const reg_entry i386_regtab[];
|
extern const reg_entry i386_regtab[];
|
||||||
extern const unsigned int i386_regtab_size;
|
extern const unsigned int i386_regtab_size;
|
||||||
extern const unsigned char i386_seg_prefixes[6];
|
|
||||||
|
Reference in New Issue
Block a user